#2A23A6#2A23A6
#2A23A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.197 H 273.6°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A23A6 |
|---|---|
| RGB | rgb(42, 35, 166) |
| HSL | hsl(243, 65%, 39%) |
| HSV | hsv(243, 79%, 65%) |
| CMYK | cmyk(74.7%, 78.9%, 0%, 34.9%) |
| CIE-LAB | lab(25.10, 45.90, -68.06) |
| CIE-LCH | lch(25.10, 82.09, 304.00°) |
| OKLab | oklab(37.43% 0.0125 -0.1969) |
| OKLCH | oklch(37.43% 0.197 273.6) |
| XYZ | xyz(8.4365, 4.4466, 36.4827) |
| Luminance | 0.0445 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.98
Royal
#0C1793
ΔE00 4.20
Cobalt Blue
#030AA7
ΔE00 4.34
Ultramarine
#2000B1
ΔE00 4.61
Royal Blue (survey)
#0504AA
ΔE00 4.74
True Blue
#010FCC
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A23A6 #9FA623
analogous
#235EA6 #2A23A6 #6C23A6
triadic
#2A23A6 #A62A23 #23A62A
tetradic
#2A23A6 #A6235E #9FA623 #23A66C
square
#2A23A6 #A6235E #9FA623 #23A66C
split-complementary
#2A23A6 #A66C23 #5EA623
monochromatic
#100E41 #1D1873 #2A23A6 #3B32D4 #6B65DF
Accessibility & contrast
On white
11.11
#2A23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2A23A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A23A6
11.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A23A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A23A6 | 1.00 | 11.11 | 1.89 | 11.11 |
| #FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a23a6; /* rgb */ color: rgb(42, 35, 166); /* oklch */ color: oklch(37.4% 0.197 273.6);
Tailwind
colors: {
custom: {
50: '#7961c2',
500: '#2a23a6',
950: '#000000',
},
}SCSS
$custom: #2a23a6; $custom-light: #7961c2; $custom-dark: #000000;
JSON
{
"hex": "#2a23a6",
"rgb": {
"r": 42,
"g": 35,
"b": 166
},
"hsl": {
"h": 243.206,
"s": 65.174,
"l": 39.412
},
"oklch": {
"l": 0.37427,
"c": 0.19728,
"h": 273.6
},
"luminance": 0.04447
}Semantic roles & 50–950 ramp
primary
#2A23A6
secondary
#BFC461
accent
#E840DF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982