#2B226E#2B226E
#2B226E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.126 H 281.7°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2B226E |
|---|---|
| RGB | rgb(43, 34, 110) |
| HSL | hsl(247, 53%, 28%) |
| HSV | hsv(247, 69%, 43%) |
| CMYK | cmyk(60.9%, 69.1%, 0%, 56.9%) |
| CIE-LAB | lab(19.15, 27.76, -42.81) |
| CIE-LCH | lch(19.15, 51.02, 302.96°) |
| OKLab | oklab(31.48% 0.0256 -0.1232) |
| OKLCH | oklch(31.48% 0.126 281.7) |
| XYZ | xyz(4.3819, 2.7831, 15.0551) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.23
Dark Indigo
#1F0954
ΔE00 6.75
Darkblue (survey)
#030764
ΔE00 6.99
Dark Royal Blue
#02066F
ΔE00 7.08
Royal
#0C1793
ΔE00 7.12
Indigo (survey)
#380282
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B226E #656E22
analogous
#223F6E #2B226E #51226E
triadic
#2B226E #6E2B22 #226E2B
tetradic
#2B226E #6E223F #656E22 #226E51
square
#2B226E #6E223F #656E22 #226E51
split-complementary
#2B226E #6E5122 #3F6E22
monochromatic
#090717 #19143F #2B226E #3D309D #5445C5
Accessibility & contrast
On white
13.49
#2B226E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2B226E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B226E
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B226E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B226E | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#043544
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b226e; /* rgb */ color: rgb(43, 34, 110); /* oklch */ color: oklch(31.5% 0.126 281.7);
Tailwind
colors: {
custom: {
50: '#6c5e98',
500: '#2b226e',
950: '#000000',
},
}SCSS
$custom: #2b226e; $custom-light: #6c5e98; $custom-dark: #000000;
JSON
{
"hex": "#2b226e",
"rgb": {
"r": 43,
"g": 34,
"b": 110
},
"hsl": {
"h": 247.105,
"s": 52.778,
"l": 28.235
},
"oklch": {
"l": 0.31479,
"c": 0.1258,
"h": 281.7
},
"luminance": 0.02783
}Semantic roles & 50–950 ramp
primary
#2B226E
secondary
#97A14A
accent
#DC4CCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E