#2F3C97#2F3C97
#2F3C97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.149 H 271.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3C97 |
|---|---|
| RGB | rgb(47, 60, 151) |
| HSL | hsl(233, 53%, 39%) |
| HSV | hsv(233, 69%, 59%) |
| CMYK | cmyk(68.9%, 60.3%, 0%, 40.8%) |
| CIE-LAB | lab(29.59, 25.97, -51.55) |
| CIE-LCH | lch(29.59, 57.72, 296.74°) |
| OKLab | oklab(40.32% 0.0046 -0.1485) |
| OKLCH | oklch(40.32% 0.149 271.8) |
| XYZ | xyz(8.3722, 6.0696, 30.0025) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.34
Blueberry
#464196
ΔE00 3.76
Darkslateblue
#483D8B
ΔE00 5.03
Cobalt
#0047AB
ΔE00 5.87
Cobalt (survey)
#1E488F
ΔE00 6.17
Ocean Blue
#4F42B5
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3C97 #978A2F
analogous
#2F7097 #2F3C97 #562F97
triadic
#2F3C97 #972F3C #3C972F
tetradic
#2F3C97 #972F70 #978A2F #2F9756
square
#2F3C97 #972F70 #978A2F #2F9756
split-complementary
#2F3C97 #97562F #70972F
monochromatic
#12173A #202968 #2F3C97 #4050C3 #6E7BD2
Accessibility & contrast
On white
9.49
#2F3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#2F3C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3C97
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3C97 | 1.00 | 9.49 | 2.21 | 9.49 |
| #FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f3c97; /* rgb */ color: rgb(47, 60, 151); /* oklch */ color: oklch(40.3% 0.149 271.8);
Tailwind
colors: {
custom: {
50: '#7571b6',
500: '#2f3c97',
950: '#000000',
},
}SCSS
$custom: #2f3c97; $custom-light: #7571b6; $custom-dark: #000000;
JSON
{
"hex": "#2f3c97",
"rgb": {
"r": 47,
"g": 60,
"b": 151
},
"hsl": {
"h": 232.5,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.40317,
"c": 0.1486,
"h": 271.8
},
"luminance": 0.0607
}Semantic roles & 50–950 ramp
primary
#2F3C97
secondary
#B9AF68
accent
#CA4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80