#2F3F87#2F3F87
#2F3F87 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.121 H 270.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3F87 |
|---|---|
| RGB | rgb(47, 63, 135) |
| HSL | hsl(229, 48%, 36%) |
| HSV | hsv(229, 65%, 53%) |
| CMYK | cmyk(65.2%, 53.3%, 0%, 47.1%) |
| CIE-LAB | lab(29.18, 18.01, -42.36) |
| CIE-LCH | lch(29.18, 46.03, 293.03°) |
| OKLab | oklab(39.62% 0.0011 -0.1215) |
| OKLCH | oklch(39.62% 0.122 270.5) |
| XYZ | xyz(7.3215, 5.9080, 23.6715) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.77
Cobalt (survey)
#1E488F
ΔE00 4.78
Darkslateblue
#483D8B
ΔE00 5.37
Darkish Blue
#014182
ΔE00 5.75
Sapphire (survey)
#2138AB
ΔE00 6.23
Cobalt
#0047AB
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3F87 #87772F
analogous
#2F6B87 #2F3F87 #4B2F87
triadic
#2F3F87 #872F3F #3F872F
tetradic
#2F3F87 #872F6B #87772F #2F874B
square
#2F3F87 #872F6B #87772F #2F874B
split-complementary
#2F3F87 #874B2F #6B872F
monochromatic
#0F152C #1F2A5A #2F3F87 #3F54B4 #6679CA
Accessibility & contrast
On white
9.63
#2F3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#2F3F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3F87
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3F87 | 1.00 | 9.63 | 2.18 | 9.63 |
| #FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f3f87; /* rgb */ color: rgb(47, 63, 135); /* oklch */ color: oklch(39.6% 0.121 270.5);
Tailwind
colors: {
custom: {
50: '#7173aa',
500: '#2f3f87',
950: '#000000',
},
}SCSS
$custom: #2f3f87; $custom-light: #7173aa; $custom-dark: #000000;
JSON
{
"hex": "#2f3f87",
"rgb": {
"r": 47,
"g": 63,
"b": 135
},
"hsl": {
"h": 229.091,
"s": 48.352,
"l": 35.686
},
"oklch": {
"l": 0.39624,
"c": 0.1215,
"h": 270.5
},
"luminance": 0.05909
}Semantic roles & 50–950 ramp
primary
#2F3F87
secondary
#B1A261
accent
#BF50D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F