#2F3D87#2F3D87
#2F3D87 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.124 H 271.5°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3D87 |
|---|---|
| RGB | rgb(47, 61, 135) |
| HSL | hsl(230, 48%, 36%) |
| HSV | hsv(230, 65%, 53%) |
| CMYK | cmyk(65.2%, 54.8%, 0%, 47.1%) |
| CIE-LAB | lab(28.62, 19.37, -43.27) |
| CIE-LCH | lch(28.62, 47.41, 294.11°) |
| OKLab | oklab(39.2% 0.0032 -0.1242) |
| OKLCH | oklch(39.2% 0.124 271.5) |
| XYZ | xyz(7.2127, 5.6905, 23.6352) |
| Luminance | 0.0569 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.56
Darkslateblue
#483D8B
ΔE00 5.01
Cobalt (survey)
#1E488F
ΔE00 5.40
Sapphire (survey)
#2138AB
ΔE00 5.95
Darkish Blue
#014182
ΔE00 6.20
Cobalt
#0047AB
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3D87 #87792F
analogous
#2F6987 #2F3D87 #4D2F87
triadic
#2F3D87 #872F3D #3D872F
tetradic
#2F3D87 #872F69 #87792F #2F874D
square
#2F3D87 #872F69 #87792F #2F874D
split-complementary
#2F3D87 #874D2F #69872F
monochromatic
#0F142C #1F285A #2F3D87 #3F52B4 #6676CA
Accessibility & contrast
On white
9.82
#2F3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#2F3D87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3D87
9.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3D87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3D87 | 1.00 | 9.82 | 2.14 | 9.82 |
| #FFFFFF | 9.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C488A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #2f3d87; /* rgb */ color: rgb(47, 61, 135); /* oklch */ color: oklch(39.2% 0.124 271.5);
Tailwind
colors: {
custom: {
50: '#7172aa',
500: '#2f3d87',
950: '#000000',
},
}SCSS
$custom: #2f3d87; $custom-light: #7172aa; $custom-dark: #000000;
JSON
{
"hex": "#2f3d87",
"rgb": {
"r": 47,
"g": 61,
"b": 135
},
"hsl": {
"h": 230.455,
"s": 48.352,
"l": 35.686
},
"oklch": {
"l": 0.392,
"c": 0.12422,
"h": 271.5
},
"luminance": 0.05691
}Semantic roles & 50–950 ramp
primary
#2F3D87
secondary
#B1A461
accent
#C250D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F