#2D298C#2D298C
#2D298C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.158 H 276.6°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2D298C |
|---|---|
| RGB | rgb(45, 41, 140) |
| HSL | hsl(242, 55%, 35%) |
| HSV | hsv(242, 71%, 55%) |
| CMYK | cmyk(67.9%, 70.7%, 0%, 45.1%) |
| CIE-LAB | lab(23.79, 34.07, -54.25) |
| CIE-LCH | lch(23.79, 64.06, 302.13°) |
| OKLab | oklab(35.74% 0.0182 -0.1566) |
| OKLCH | oklch(35.74% 0.158 276.6) |
| XYZ | xyz(6.6072, 4.0366, 25.2368) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.77
Midnight Blue
#191970
ΔE00 5.69
Sapphire (survey)
#2138AB
ΔE00 6.05
Indigo Blue
#3A18B1
ΔE00 6.62
Darkslateblue
#483D8B
ΔE00 6.63
Cobalt Blue
#030AA7
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D298C #888C29
analogous
#29568C #2D298C #5E298C
triadic
#2D298C #8C2D29 #298C2D
tetradic
#2D298C #8C2956 #888C29 #298C5E
square
#2D298C #8C2956 #888C29 #298C5E
split-complementary
#2D298C #8C5E29 #568C29
monochromatic
#0F0D2D #1E1B5D #2D298C #3C37BB #645FD0
Accessibility & contrast
On white
11.62
#2D298C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#2D298C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D298C
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D298C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D298C | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2d298c; /* rgb */ color: rgb(45, 41, 140); /* oklch */ color: oklch(35.7% 0.158 276.6);
Tailwind
colors: {
custom: {
50: '#7363af',
500: '#2d298c',
950: '#000000',
},
}SCSS
$custom: #2d298c; $custom-light: #7363af; $custom-dark: #000000;
JSON
{
"hex": "#2d298c",
"rgb": {
"r": 45,
"g": 41,
"b": 140
},
"hsl": {
"h": 242.424,
"s": 54.696,
"l": 35.49
},
"oklch": {
"l": 0.3574,
"c": 0.15766,
"h": 276.6
},
"luminance": 0.04037
}Semantic roles & 50–950 ramp
primary
#2D298C
secondary
#B2B65B
accent
#DE4AD8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F