#2F3397#2F3397
#2F3397 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.160 H 274.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3397 |
|---|---|
| RGB | rgb(47, 51, 151) |
| HSL | hsl(238, 53%, 39%) |
| HSV | hsv(238, 69%, 59%) |
| CMYK | cmyk(68.9%, 66.2%, 0%, 40.8%) |
| CIE-LAB | lab(27.31, 31.88, -55.26) |
| CIE-LCH | lch(27.31, 63.80, 299.98°) |
| OKLab | oklab(38.64% 0.0119 -0.1595) |
| OKLCH | oklch(38.64% 0.16 274.3) |
| XYZ | xyz(7.9402, 5.2056, 29.8585) |
| Luminance | 0.0521 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.36
Blueberry
#464196
ΔE00 4.89
Darkslateblue
#483D8B
ΔE00 5.34
Ocean Blue
#4F42B5
ΔE00 6.99
Royal
#0C1793
ΔE00 7.04
Indigo Blue
#3A18B1
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3397 #97932F
analogous
#2F6797 #2F3397 #5F2F97
triadic
#2F3397 #972F33 #33972F
tetradic
#2F3397 #972F67 #97932F #2F975F
square
#2F3397 #972F67 #97932F #2F975F
split-complementary
#2F3397 #975F2F #67972F
monochromatic
#12133A #202368 #2F3397 #4045C3 #6E72D2
Accessibility & contrast
On white
10.29
#2F3397 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2F3397 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3397
10.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3397 | 1.00 | 10.29 | 2.04 | 10.29 |
| #FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f3397; /* rgb */ color: rgb(47, 51, 151); /* oklch */ color: oklch(38.6% 0.160 274.3);
Tailwind
colors: {
custom: {
50: '#766bb7',
500: '#2f3397',
950: '#000000',
},
}SCSS
$custom: #2f3397; $custom-light: #766bb7; $custom-dark: #000000;
JSON
{
"hex": "#2f3397",
"rgb": {
"r": 47,
"g": 51,
"b": 151
},
"hsl": {
"h": 237.692,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.38642,
"c": 0.15994,
"h": 274.3
},
"luminance": 0.05206
}Semantic roles & 50–950 ramp
primary
#2F3397
secondary
#B9B668
accent
#D64CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80