#2F298E#2F298E
#2F298E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.160 H 277.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2F298E |
|---|---|
| RGB | rgb(47, 41, 142) |
| HSL | hsl(244, 55%, 36%) |
| HSV | hsv(244, 71%, 56%) |
| CMYK | cmyk(66.9%, 71.1%, 0%, 44.3%) |
| CIE-LAB | lab(24.14, 35.03, -54.92) |
| CIE-LCH | lch(24.14, 65.14, 302.53°) |
| OKLab | oklab(36.09% 0.0205 -0.1585) |
| OKLCH | oklch(36.09% 0.16 277.4) |
| XYZ | xyz(6.8461, 4.1426, 26.0248) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.76
Sapphire (survey)
#2138AB
ΔE00 5.94
Midnight Blue
#191970
ΔE00 5.97
Indigo Blue
#3A18B1
ΔE00 6.25
Darkslateblue
#483D8B
ΔE00 6.57
Cobalt Blue
#030AA7
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F298E #888E29
analogous
#29558E #2F298E #61298E
triadic
#2F298E #8E2F29 #298E2F
tetradic
#2F298E #8E2955 #888E29 #298E61
square
#2F298E #8E2955 #888E29 #298E61
split-complementary
#2F298E #8E6129 #558E29
monochromatic
#100E2F #1F1B5F #2F298E #3F37BD #6760D1
Accessibility & contrast
On white
11.48
#2F298E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2F298E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F298E
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F298E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F298E | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f298e; /* rgb */ color: rgb(47, 41, 142); /* oklch */ color: oklch(36.1% 0.160 277.4);
Tailwind
colors: {
custom: {
50: '#7564b0',
500: '#2f298e',
950: '#000000',
},
}SCSS
$custom: #2f298e; $custom-light: #7564b0; $custom-dark: #000000;
JSON
{
"hex": "#2f298e",
"rgb": {
"r": 47,
"g": 41,
"b": 142
},
"hsl": {
"h": 243.564,
"s": 55.191,
"l": 35.882
},
"oklch": {
"l": 0.36086,
"c": 0.15985,
"h": 277.4
},
"luminance": 0.04143
}Semantic roles & 50–950 ramp
primary
#2F298E
secondary
#B1B75C
accent
#DF49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80