#2F298F#2F298F
#2F298F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.161 H 277.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2F298F |
|---|---|
| RGB | rgb(47, 41, 143) |
| HSL | hsl(244, 55%, 36%) |
| HSV | hsv(244, 71%, 56%) |
| CMYK | cmyk(67.1%, 71.3%, 0%, 43.9%) |
| CIE-LAB | lab(24.23, 35.37, -55.38) |
| CIE-LCH | lch(24.23, 65.71, 302.57°) |
| OKLab | oklab(36.19% 0.0204 -0.1599) |
| OKLCH | oklch(36.19% 0.161 277.3) |
| XYZ | xyz(6.9215, 4.1728, 26.4220) |
| Luminance | 0.0417 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.72
Sapphire (survey)
#2138AB
ΔE00 5.85
Midnight Blue
#191970
ΔE00 6.08
Indigo Blue
#3A18B1
ΔE00 6.12
Darkslateblue
#483D8B
ΔE00 6.61
Cobalt Blue
#030AA7
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F298F #898F29
analogous
#29568F #2F298F #62298F
triadic
#2F298F #8F2F29 #298F2F
tetradic
#2F298F #8F2956 #898F29 #298F62
square
#2F298F #8F2956 #898F29 #298F62
split-complementary
#2F298F #8F6229 #568F29
monochromatic
#100E30 #1F1B5F #2F298F #3F37BF #6761D2
Accessibility & contrast
On white
11.45
#2F298F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2F298F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F298F
11.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F298F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F298F | 1.00 | 11.45 | 1.83 | 11.45 |
| #FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f298f; /* rgb */ color: rgb(47, 41, 143); /* oklch */ color: oklch(36.2% 0.161 277.3);
Tailwind
colors: {
custom: {
50: '#7564b1',
500: '#2f298f',
950: '#000000',
},
}SCSS
$custom: #2f298f; $custom-light: #7564b1; $custom-dark: #000000;
JSON
{
"hex": "#2f298f",
"rgb": {
"r": 47,
"g": 41,
"b": 143
},
"hsl": {
"h": 243.529,
"s": 55.435,
"l": 36.078
},
"oklch": {
"l": 0.36186,
"c": 0.16116,
"h": 277.3
},
"luminance": 0.04173
}Semantic roles & 50–950 ramp
primary
#2F298F
secondary
#B2B75C
accent
#DF49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80