#2F3A97#2F3A97
#2F3A97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.151 H 272.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3A97 |
|---|---|
| RGB | rgb(47, 58, 151) |
| HSL | hsl(234, 53%, 39%) |
| HSV | hsv(234, 69%, 59%) |
| CMYK | cmyk(68.9%, 61.6%, 0%, 40.8%) |
| CIE-LAB | lab(29.07, 27.30, -52.39) |
| CIE-LCH | lch(29.07, 59.08, 297.52°) |
| OKLab | oklab(39.93% 0.0063 -0.151) |
| OKLCH | oklch(39.93% 0.151 272.4) |
| XYZ | xyz(8.2694, 5.8640, 29.9682) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.13
Blueberry
#464196
ΔE00 3.85
Darkslateblue
#483D8B
ΔE00 4.95
Cobalt
#0047AB
ΔE00 6.37
Ocean Blue
#4F42B5
ΔE00 6.59
Cobalt (survey)
#1E488F
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3A97 #978C2F
analogous
#2F6E97 #2F3A97 #582F97
triadic
#2F3A97 #972F3A #3A972F
tetradic
#2F3A97 #972F6E #978C2F #2F9758
square
#2F3A97 #972F6E #978C2F #2F9758
split-complementary
#2F3A97 #97582F #6E972F
monochromatic
#12163A #202868 #2F3A97 #404EC3 #6E79D2
Accessibility & contrast
On white
9.66
#2F3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#2F3A97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3A97
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3A97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3A97 | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2f3a97; /* rgb */ color: rgb(47, 58, 151); /* oklch */ color: oklch(39.9% 0.151 272.4);
Tailwind
colors: {
custom: {
50: '#7570b6',
500: '#2f3a97',
950: '#000000',
},
}SCSS
$custom: #2f3a97; $custom-light: #7570b6; $custom-dark: #000000;
JSON
{
"hex": "#2f3a97",
"rgb": {
"r": 47,
"g": 58,
"b": 151
},
"hsl": {
"h": 233.654,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.39931,
"c": 0.15117,
"h": 272.4
},
"luminance": 0.05865
}Semantic roles & 50–950 ramp
primary
#2F3A97
secondary
#B9B168
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80