#2E228F#2E228F
#2E228F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.169 H 278.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2E228F |
|---|---|
| RGB | rgb(46, 34, 143) |
| HSL | hsl(247, 62%, 35%) |
| HSV | hsv(247, 76%, 56%) |
| CMYK | cmyk(67.8%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.68, 39.36, -57.94) |
| CIE-LCH | lch(22.68, 70.04, 304.19°) |
| OKLab | oklab(35.06% 0.0237 -0.1673) |
| OKLCH | oklch(35.06% 0.169 278.1) |
| XYZ | xyz(6.6551, 3.7075, 26.3462) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.36
Indigo Blue
#3A18B1
ΔE00 5.29
Cobalt Blue
#030AA7
ΔE00 5.36
Midnight Blue
#191970
ΔE00 5.45
Indigo (survey)
#380282
ΔE00 5.81
Royal Blue (survey)
#0504AA
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E228F #838F22
analogous
#224C8F #2E228F #65228F
triadic
#2E228F #8F2E22 #228F2E
tetradic
#2E228F #8F224C #838F22 #228F65
square
#2E228F #8F224C #838F22 #228F65
split-complementary
#2E228F #8F6522 #4C8F22
monochromatic
#0E0A2C #1E165E #2E228F #3E2EC0 #6355D7
Accessibility & contrast
On white
12.06
#2E228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2E228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E228F
12.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E228F | 1.00 | 12.06 | 1.74 | 12.06 |
| #FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2e228f; /* rgb */ color: rgb(46, 34, 143); /* oklch */ color: oklch(35.1% 0.169 278.1);
Tailwind
colors: {
custom: {
50: '#755fb1',
500: '#2e228f',
950: '#000000',
},
}SCSS
$custom: #2e228f; $custom-light: #755fb1; $custom-dark: #000000;
JSON
{
"hex": "#2e228f",
"rgb": {
"r": 46,
"g": 34,
"b": 143
},
"hsl": {
"h": 246.606,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.35058,
"c": 0.16901,
"h": 278.1
},
"luminance": 0.03708
}Semantic roles & 50–950 ramp
primary
#2E228F
secondary
#AFBA52
accent
#E543D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980