#2E23A7#2E23A7
#2E23A7 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.197 H 275.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2E23A7 |
|---|---|
| RGB | rgb(46, 35, 167) |
| HSL | hsl(245, 65%, 40%) |
| HSV | hsv(245, 79%, 65%) |
| CMYK | cmyk(72.5%, 79%, 0%, 34.5%) |
| CIE-LAB | lab(25.48, 46.55, -68.02) |
| CIE-LCH | lch(25.48, 82.42, 304.39°) |
| OKLab | oklab(37.8% 0.0174 -0.1967) |
| OKLCH | oklch(37.8% 0.197 275.1) |
| XYZ | xyz(8.7005, 4.5721, 36.9757) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.65
Cobalt Blue
#030AA7
ΔE00 4.50
Royal
#0C1793
ΔE00 4.50
Ultramarine
#2000B1
ΔE00 4.59
Royal Blue (survey)
#0504AA
ΔE00 4.85
True Blue
#010FCC
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E23A7 #9CA723
analogous
#235AA7 #2E23A7 #7023A7
triadic
#2E23A7 #A72E23 #23A72E
tetradic
#2E23A7 #A7235A #9CA723 #23A770
square
#2E23A7 #A7235A #9CA723 #23A770
split-complementary
#2E23A7 #A77023 #5AA723
monochromatic
#120E42 #201874 #2E23A7 #4033D4 #7066DF
Accessibility & contrast
On white
10.97
#2E23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2E23A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E23A7
10.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E23A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E23A7 | 1.00 | 10.97 | 1.91 | 10.97 |
| #FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2e23a7; /* rgb */ color: rgb(46, 35, 167); /* oklch */ color: oklch(37.8% 0.197 275.1);
Tailwind
colors: {
custom: {
50: '#7a61c2',
500: '#2e23a7',
950: '#000000',
},
}SCSS
$custom: #2e23a7; $custom-light: #7a61c2; $custom-dark: #000000;
JSON
{
"hex": "#2e23a7",
"rgb": {
"r": 46,
"g": 35,
"b": 167
},
"hsl": {
"h": 245,
"s": 65.347,
"l": 39.608
},
"oklch": {
"l": 0.37799,
"c": 0.19746,
"h": 275.1
},
"luminance": 0.04573
}Semantic roles & 50–950 ramp
primary
#2E23A7
secondary
#BCC461
accent
#E83FDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982