#2B316B#2B316B
#2B316B is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.100 H 275.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2B316B |
|---|---|
| RGB | rgb(43, 49, 107) |
| HSL | hsl(234, 43%, 29%) |
| HSV | hsv(234, 60%, 42%) |
| CMYK | cmyk(59.8%, 54.2%, 0%, 58%) |
| CIE-LAB | lab(22.90, 16.46, -34.79) |
| CIE-LCH | lch(22.90, 38.49, 295.32°) |
| OKLab | oklab(34.17% 0.0093 -0.0995) |
| OKLCH | oklch(34.17% 0.1 275.3) |
| XYZ | xyz(4.7476, 3.7714, 14.3848) |
| Luminance | 0.0377 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.94
Navy Blue
#1B2A4A
ΔE00 6.89
Darkslateblue
#483D8B
ΔE00 7.19
Marine Blue
#01386A
ΔE00 7.76
Midnight Blue
#191970
ΔE00 7.86
Blueberry
#464196
ΔE00 8.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B316B #6B652B
analogous
#2B516B #2B316B #452B6B
triadic
#2B316B #6B2B31 #316B2B
tetradic
#2B316B #6B2B51 #6B652B #2B6B45
square
#2B316B #6B2B51 #6B652B #2B6B45
split-complementary
#2B316B #6B452B #516B2B
monochromatic
#090A16 #191D3F #2B316B #3D4597 #565FBB
Accessibility & contrast
On white
11.97
#2B316B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2B316B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B316B
11.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B316B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B316B | 1.00 | 11.97 | 1.75 | 11.97 |
| #FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#12396D
Deuteranopia (green-blind)
#06346A
Tritanopia (blue-blind)
#063E49
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2b316b; /* rgb */ color: rgb(43, 49, 107); /* oklch */ color: oklch(34.2% 0.100 275.3);
Tailwind
colors: {
custom: {
50: '#6b6896',
500: '#2b316b',
950: '#000000',
},
}SCSS
$custom: #2b316b; $custom-light: #6b6896; $custom-dark: #000000;
JSON
{
"hex": "#2b316b",
"rgb": {
"r": 43,
"g": 49,
"b": 107
},
"hsl": {
"h": 234.375,
"s": 42.667,
"l": 29.412
},
"oklch": {
"l": 0.34172,
"c": 0.09992,
"h": 275.3
},
"luminance": 0.03772
}Semantic roles & 50–950 ramp
primary
#2B316B
secondary
#9D9655
accent
#C755D2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E