#2B317F#2B317F
#2B317F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.130 H 274.4°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2B317F |
|---|---|
| RGB | rgb(43, 49, 127) |
| HSL | hsl(236, 49%, 33%) |
| HSV | hsv(236, 66%, 50%) |
| CMYK | cmyk(66.1%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.46, 23.86, -45.03) |
| CIE-LCH | lch(24.46, 50.96, 297.92°) |
| OKLab | oklab(35.83% 0.01 -0.1296) |
| OKLCH | oklch(35.83% 0.13 274.4) |
| XYZ | xyz(5.9241, 4.2420, 20.5812) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.51
Blueberry
#464196
ΔE00 6.19
Sapphire (survey)
#2138AB
ΔE00 6.73
Midnight Blue
#191970
ΔE00 6.77
Marine
#042E60
ΔE00 7.49
Royal
#0C1793
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B317F #7F792B
analogous
#2B5B7F #2B317F #4F2B7F
triadic
#2B317F #7F2B31 #317F2B
tetradic
#2B317F #7F2B5B #7F792B #2B7F4F
square
#2B317F #7F2B5B #7F792B #2B7F4F
split-complementary
#2B317F #7F4F2B #5B7F2B
monochromatic
#0C0E24 #1C1F51 #2B317F #3A43AD #5C64C8
Accessibility & contrast
On white
11.36
#2B317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2B317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B317F
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B317F | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2b317f; /* rgb */ color: rgb(43, 49, 127); /* oklch */ color: oklch(35.8% 0.130 274.4);
Tailwind
colors: {
custom: {
50: '#6f69a5',
500: '#2b317f',
950: '#000000',
},
}SCSS
$custom: #2b317f; $custom-light: #6f69a5; $custom-dark: #000000;
JSON
{
"hex": "#2b317f",
"rgb": {
"r": 43,
"g": 49,
"b": 127
},
"hsl": {
"h": 235.714,
"s": 49.412,
"l": 33.333
},
"oklch": {
"l": 0.35826,
"c": 0.12999,
"h": 274.4
},
"luminance": 0.04243
}Semantic roles & 50–950 ramp
primary
#2B317F
secondary
#AEA858
accent
#CF4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F