#2B227C#2B227C
#2B227C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.145 H 279.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2B227C |
|---|---|
| RGB | rgb(43, 34, 124) |
| HSL | hsl(246, 57%, 31%) |
| HSV | hsv(246, 73%, 49%) |
| CMYK | cmyk(65.3%, 72.6%, 0%, 51.4%) |
| CIE-LAB | lab(20.49, 32.60, -49.61) |
| CIE-LCH | lch(20.49, 59.36, 303.31°) |
| OKLab | oklab(32.85% 0.0234 -0.1431) |
| OKLCH | oklch(32.85% 0.145 279.3) |
| XYZ | xyz(5.2052, 3.1125, 19.3913) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.18
Royal
#0C1793
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 6.23
Dark Royal Blue
#02066F
ΔE00 6.67
Deep Blue
#040273
ΔE00 7.05
Navy
#000080
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B227C #737C22
analogous
#22467C #2B227C #58227C
triadic
#2B227C #7C2B22 #227C2B
tetradic
#2B227C #7C2246 #737C22 #227C58
square
#2B227C #7C2246 #737C22 #227C58
split-complementary
#2B227C #7C5822 #467C22
monochromatic
#0A081C #1A154C #2B227C #3C2FAC #584BCE
Accessibility & contrast
On white
12.94
#2B227C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2B227C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B227C
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B227C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B227C | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2b227c; /* rgb */ color: rgb(43, 34, 124); /* oklch */ color: oklch(32.9% 0.145 279.3);
Tailwind
colors: {
custom: {
50: '#6f5ea3',
500: '#2b227c',
950: '#000000',
},
}SCSS
$custom: #2b227c; $custom-light: #6f5ea3; $custom-dark: #000000;
JSON
{
"hex": "#2b227c",
"rgb": {
"r": 43,
"g": 34,
"b": 124
},
"hsl": {
"h": 246,
"s": 56.962,
"l": 30.98
},
"oklch": {
"l": 0.32851,
"c": 0.14501,
"h": 279.3
},
"luminance": 0.03113
}Semantic roles & 50–950 ramp
primary
#2B227C
secondary
#A5AF4B
accent
#E048D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F