#2A298C#2A298C
#2A298C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.158 H 275.2°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2A298C |
|---|---|
| RGB | rgb(42, 41, 140) |
| HSL | hsl(241, 55%, 35%) |
| HSV | hsv(241, 71%, 55%) |
| CMYK | cmyk(70%, 70.7%, 0%, 45.1%) |
| CIE-LAB | lab(23.58, 33.67, -54.61) |
| CIE-LCH | lch(23.58, 64.16, 301.66°) |
| OKLab | oklab(35.53% 0.0143 -0.1578) |
| OKLCH | oklch(35.53% 0.158 275.2) |
| XYZ | xyz(6.4798, 3.9710, 25.2308) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.67
Midnight Blue
#191970
ΔE00 5.61
Sapphire (survey)
#2138AB
ΔE00 5.93
Indigo Blue
#3A18B1
ΔE00 6.77
Darkslateblue
#483D8B
ΔE00 6.83
Cobalt Blue
#030AA7
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A298C #8B8C29
analogous
#29598C #2A298C #5B298C
triadic
#2A298C #8C2A29 #298C2A
tetradic
#2A298C #8C2959 #8B8C29 #298C5B
square
#2A298C #8C2959 #8B8C29 #298C5B
split-complementary
#2A298C #8C5B29 #598C29
monochromatic
#0E0D2D #1C1B5D #2A298C #3837BB #605FD0
Accessibility & contrast
On white
11.70
#2A298C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2A298C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A298C
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A298C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A298C | 1.00 | 11.70 | 1.79 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a298c; /* rgb */ color: rgb(42, 41, 140); /* oklch */ color: oklch(35.5% 0.158 275.2);
Tailwind
colors: {
custom: {
50: '#7263af',
500: '#2a298c',
950: '#000000',
},
}SCSS
$custom: #2a298c; $custom-light: #7263af; $custom-dark: #000000;
JSON
{
"hex": "#2a298c",
"rgb": {
"r": 42,
"g": 41,
"b": 140
},
"hsl": {
"h": 240.606,
"s": 54.696,
"l": 35.49
},
"oklch": {
"l": 0.35527,
"c": 0.1584,
"h": 275.2
},
"luminance": 0.03972
}Semantic roles & 50–950 ramp
primary
#2A298C
secondary
#B5B65B
accent
#DE4ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F