#2A238E#2A238E
#2A238E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 276.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2A238E |
|---|---|
| RGB | rgb(42, 35, 142) |
| HSL | hsl(244, 60%, 35%) |
| HSV | hsv(244, 75%, 56%) |
| CMYK | cmyk(70.4%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(22.47, 38.00, -57.68) |
| CIE-LCH | lch(22.47, 69.07, 303.38°) |
| OKLab | oklab(34.8% 0.0178 -0.1667) |
| OKLCH | oklch(34.8% 0.168 276.1) |
| XYZ | xyz(6.4368, 3.6467, 25.9506) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.28
Midnight Blue
#191970
ΔE00 5.19
Cobalt Blue
#030AA7
ΔE00 5.52
Indigo Blue
#3A18B1
ΔE00 5.70
Royal Blue (survey)
#0504AA
ΔE00 6.07
Indigo (survey)
#380282
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A238E #878E23
analogous
#23528E #2A238E #5F238E
triadic
#2A238E #8E2A23 #238E2A
tetradic
#2A238E #8E2352 #878E23 #238E5F
square
#2A238E #8E2352 #878E23 #238E5F
split-complementary
#2A238E #8E5F23 #528E23
monochromatic
#0D0B2C #1B175D #2A238E #392FBF #5E56D5
Accessibility & contrast
On white
12.14
#2A238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2A238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A238E
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A238E | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a238e; /* rgb */ color: rgb(42, 35, 142); /* oklch */ color: oklch(34.8% 0.168 276.1);
Tailwind
colors: {
custom: {
50: '#7360b0',
500: '#2a238e',
950: '#000000',
},
}SCSS
$custom: #2a238e; $custom-light: #7360b0; $custom-dark: #000000;
JSON
{
"hex": "#2a238e",
"rgb": {
"r": 42,
"g": 35,
"b": 142
},
"hsl": {
"h": 243.925,
"s": 60.452,
"l": 34.706
},
"oklch": {
"l": 0.34797,
"c": 0.16765,
"h": 276.1
},
"luminance": 0.03647
}Semantic roles & 50–950 ramp
primary
#2A238E
secondary
#B3B953
accent
#E444D9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980