#2F339E#2F339E
#2F339E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.169 H 273.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2F339E |
|---|---|
| RGB | rgb(47, 51, 158) |
| HSL | hsl(238, 54%, 40%) |
| HSV | hsv(238, 70%, 62%) |
| CMYK | cmyk(70.3%, 67.7%, 0%, 38%) |
| CIE-LAB | lab(27.95, 34.37, -58.48) |
| CIE-LCH | lch(27.95, 67.83, 300.44°) |
| OKLab | oklab(39.31% 0.0113 -0.1689) |
| OKLCH | oklch(39.31% 0.169 273.8) |
| XYZ | xyz(8.5256, 5.4398, 32.9418) |
| Luminance | 0.0544 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.66
Blueberry
#464196
ΔE00 5.13
Darkslateblue
#483D8B
ΔE00 5.87
Ocean Blue
#4F42B5
ΔE00 6.38
Indigo Blue
#3A18B1
ΔE00 6.67
Blue Blue
#2242C7
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F339E #9E9A2F
analogous
#2F6A9E #2F339E #632F9E
triadic
#2F339E #9E2F33 #339E2F
tetradic
#2F339E #9E2F6A #9E9A2F #2F9E63
square
#2F339E #9E2F6A #9E9A2F #2F9E63
split-complementary
#2F339E #9E632F #6A9E2F
monochromatic
#131540 #21246F #2F339E #4348C7 #7276D5
Accessibility & contrast
On white
10.06
#2F339E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#2F339E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F339E
10.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F339E | 1.00 | 10.06 | 2.09 | 10.06 |
| #FFFFFF | 10.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2f339e; /* rgb */ color: rgb(47, 51, 158); /* oklch */ color: oklch(39.3% 0.169 273.8);
Tailwind
colors: {
custom: {
50: '#776bbc',
500: '#2f339e',
950: '#000000',
},
}SCSS
$custom: #2f339e; $custom-light: #776bbc; $custom-dark: #000000;
JSON
{
"hex": "#2f339e",
"rgb": {
"r": 47,
"g": 51,
"b": 158
},
"hsl": {
"h": 237.838,
"s": 54.146,
"l": 40.196
},
"oklch": {
"l": 0.39305,
"c": 0.16931,
"h": 273.8
},
"luminance": 0.05441
}Semantic roles & 50–950 ramp
primary
#2F339E
secondary
#BDBA6C
accent
#D84ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81