#2F3791#2F3791
#2F3791 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.147 H 273.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3791 |
|---|---|
| RGB | rgb(47, 55, 145) |
| HSL | hsl(235, 51%, 38%) |
| HSV | hsv(235, 68%, 57%) |
| CMYK | cmyk(67.6%, 62.1%, 0%, 43.1%) |
| CIE-LAB | lab(27.79, 27.10, -50.79) |
| CIE-LCH | lch(27.79, 57.57, 298.08°) |
| OKLab | oklab(38.83% 0.009 -0.1464) |
| OKLCH | oklch(38.83% 0.147 273.5) |
| XYZ | xyz(7.6476, 5.3804, 27.4181) |
| Luminance | 0.0538 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.91
Blueberry
#464196
ΔE00 4.17
Darkslateblue
#483D8B
ΔE00 4.67
Ocean Blue
#4F42B5
ΔE00 7.34
Cobalt
#0047AB
ΔE00 7.41
Cobalt (survey)
#1E488F
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3791 #91892F
analogous
#2F6891 #2F3791 #582F91
triadic
#2F3791 #912F37 #37912F
tetradic
#2F3791 #912F68 #91892F #2F9158
square
#2F3791 #912F68 #91892F #2F9158
split-complementary
#2F3791 #91582F #68912F
monochromatic
#111435 #202563 #2F3791 #3E49BF #6B73CF
Accessibility & contrast
On white
10.11
#2F3791 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#2F3791 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3791
10.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3791 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3791 | 1.00 | 10.11 | 2.08 | 10.11 |
| #FFFFFF | 10.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2f3791; /* rgb */ color: rgb(47, 55, 145); /* oklch */ color: oklch(38.8% 0.147 273.5);
Tailwind
colors: {
custom: {
50: '#746db2',
500: '#2f3791',
950: '#000000',
},
}SCSS
$custom: #2f3791; $custom-light: #746db2; $custom-dark: #000000;
JSON
{
"hex": "#2f3791",
"rgb": {
"r": 47,
"g": 55,
"b": 145
},
"hsl": {
"h": 235.102,
"s": 51.042,
"l": 37.647
},
"oklch": {
"l": 0.38832,
"c": 0.14665,
"h": 273.5
},
"luminance": 0.05381
}Semantic roles & 50–950 ramp
primary
#2F3791
secondary
#B6B065
accent
#CF4DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80