Skip to content

Blue (Pigment) (#333399)

The hex code for Blue (Pigment) is #333399. It is rgb(51, 51, 153) in RGB, hsl(240, 50%, 40%) in HSL, and about cmyk(67%, 67%, 0%, 40%) in CMYK — a mid-tone blue. White text is the more readable choice on this background.

#333399
HEX#333399
RGBrgb(51, 51, 153)
HSLhsl(240, 50%, 40%)
HSVhsv(240, 67%, 60%)
CMYKcmyk(67%, 67%, 0%, 40%)
OKLCHoklch(39.1% 0.162 275.9)
LABlab(26.85% 26.58 -56.98)
LCHlch(26.85% 62.88 295.01)

Colors Closest to Blue (Pigment)

Blue (Pigment) is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every blue in the library.

#333399 Channel Values

How Blue (Pigment) breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 51 · G 51 · B 1538-bit channels as sent to the display
HSLH 240° · S 50% · L 40%Easiest model for building lighter and darker variants
HSVH 240° · S 67% · V 60%Matches the picker in most design tools
CMYKC 67% · M 67% · Y 0% · K 40%Approximate ink mix; confirm with an ICC profile before printing
Luminance10.12:1 vs white · 2.07:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Blue (Pigment) background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text10.12:1AA normal AA large AAA normal
Fails AABlack text2.07:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #333399 in the contrast checker.

Colors That Go With Blue (Pigment)

Pairings derived from color-wheel relationships. The complementary color sits opposite Blue (Pigment); analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Blue (Pigment)

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #333399.

How Blue (Pigment) Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#333399
Protanopia#333399
Protanomaly#333399
Deuteranopia#333399
Deuteranomaly#333399
Tritanopia#004A4A
Tritanomaly#1C4272
Achromatopsia#424242

Test a full palette in the color blindness simulator.

Using #333399 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--blue-pigment: #333399;
CSS backgroundbackground-color: #333399;
Tailwind configcolors: { 'blue-pigment': '#333399' }
SwiftUIColor(red: 0.200, green: 0.200, blue: 0.600)
Android XML<color name="blue_pigment">#333399</color>
SVG fillfill="#333399"

More Blue Colors

Blue (Pigment) sits in the blue family. These are its neighbours across that family's full range, each with its own breakdown.

#333399 Frequently Asked Questions

What is the hex code for Blue (Pigment)?

The hex code for Blue (Pigment) is #333399. That is rgb(51, 51, 153) in RGB, hsl(240, 50%, 40%) in HSL, and approximately cmyk(67%, 67%, 0%, 40%) in CMYK.

What is the RGB value of #333399?

#333399 is rgb(51, 51, 153) — red 51, green 51, and blue 153 on the 0-255 scale.

What is the CMYK value of #333399?

#333399 converts to approximately cmyk(67%, 67%, 0%, 40%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #333399 be black or white?

White text is the more readable choice. #333399 scores 10.12:1 against white and 2.07:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #333399 as a CSS color keyword?

No. #333399 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is midnightblue (#191970) at a CIE76 distance of 13.4, which is visibly different.

Open Blue (Pigment) in a Tool

Keep exploring: every blue in the color library, the guide to shades of blue, or the full color library.