#2B318E#2B318E
#2B318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.151 H 273.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2B318E |
|---|---|
| RGB | rgb(43, 49, 142) |
| HSL | hsl(236, 54%, 36%) |
| HSV | hsv(236, 70%, 56%) |
| CMYK | cmyk(69.7%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.75, 29.38, -52.28) |
| CIE-LCH | lch(25.75, 59.97, 299.33°) |
| OKLab | oklab(37.18% 0.0094 -0.1509) |
| OKLCH | oklch(37.18% 0.151 273.6) |
| XYZ | xyz(6.9754, 4.6626, 26.1183) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.54
Darkslateblue
#483D8B
ΔE00 5.51
Blueberry
#464196
ΔE00 5.52
Royal
#0C1793
ΔE00 6.74
Midnight Blue
#191970
ΔE00 7.35
Indigo Blue
#3A18B1
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B318E #8E882B
analogous
#2B638E #2B318E #572B8E
triadic
#2B318E #8E2B31 #318E2B
tetradic
#2B318E #8E2B63 #8E882B #2B8E57
square
#2B318E #8E2B63 #8E882B #2B8E57
split-complementary
#2B318E #8E572B #638E2B
monochromatic
#0F1130 #1D215F #2B318E #3941BD #636AD0
Accessibility & contrast
On white
10.87
#2B318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2B318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B318E
10.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B318E | 1.00 | 10.87 | 1.93 | 10.87 |
| #FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2b318e; /* rgb */ color: rgb(43, 49, 142); /* oklch */ color: oklch(37.2% 0.151 273.6);
Tailwind
colors: {
custom: {
50: '#7269b0',
500: '#2b318e',
950: '#000000',
},
}SCSS
$custom: #2b318e; $custom-light: #7269b0; $custom-dark: #000000;
JSON
{
"hex": "#2b318e",
"rgb": {
"r": 43,
"g": 49,
"b": 142
},
"hsl": {
"h": 236.364,
"s": 53.514,
"l": 36.275
},
"oklch": {
"l": 0.37183,
"c": 0.15119,
"h": 273.6
},
"luminance": 0.04663
}Semantic roles & 50–950 ramp
primary
#2B318E
secondary
#B6B15F
accent
#D44BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80