#2F3786#2F3786
#2F3786 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.131 H 274.0°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3786 |
|---|---|
| RGB | rgb(47, 55, 134) |
| HSL | hsl(234, 48%, 35%) |
| HSV | hsv(234, 65%, 53%) |
| CMYK | cmyk(64.9%, 59%, 0%, 47.5%) |
| CIE-LAB | lab(26.90, 23.07, -45.43) |
| CIE-LCH | lch(26.90, 50.96, 296.92°) |
| OKLab | oklab(37.89% 0.0091 -0.1306) |
| OKLCH | oklch(37.89% 0.131 274) |
| XYZ | xyz(6.8401, 5.0574, 23.1653) |
| Luminance | 0.0506 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.52
Blueberry
#464196
ΔE00 4.66
Sapphire (survey)
#2138AB
ΔE00 5.65
Cobalt (survey)
#1E488F
ΔE00 7.30
Darkish Blue
#014182
ΔE00 7.71
Marine
#042E60
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3786 #867E2F
analogous
#2F6286 #2F3786 #522F86
triadic
#2F3786 #862F37 #37862F
tetradic
#2F3786 #862F62 #867E2F #2F8652
square
#2F3786 #862F62 #867E2F #2F8652
split-complementary
#2F3786 #86522F #62862F
monochromatic
#0F122B #1F2459 #2F3786 #3F4AB3 #666FC9
Accessibility & contrast
On white
10.44
#2F3786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#2F3786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3786
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3786 | 1.00 | 10.44 | 2.01 | 10.44 |
| #FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2f3786; /* rgb */ color: rgb(47, 55, 134); /* oklch */ color: oklch(37.9% 0.131 274.0);
Tailwind
colors: {
custom: {
50: '#726daa',
500: '#2f3786',
950: '#000000',
},
}SCSS
$custom: #2f3786; $custom-light: #726daa; $custom-dark: #000000;
JSON
{
"hex": "#2f3786",
"rgb": {
"r": 47,
"g": 55,
"b": 134
},
"hsl": {
"h": 234.483,
"s": 48.066,
"l": 35.49
},
"oklch": {
"l": 0.37889,
"c": 0.13094,
"h": 274
},
"luminance": 0.05058
}Semantic roles & 50–950 ramp
primary
#2F3786
secondary
#B0A960
accent
#CB50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F