#2F2298#2F2298
#2F2298 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.180 H 277.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2298 |
|---|---|
| RGB | rgb(47, 34, 152) |
| HSL | hsl(247, 63%, 36%) |
| HSV | hsv(247, 78%, 60%) |
| CMYK | cmyk(69.1%, 77.6%, 0%, 40.4%) |
| CIE-LAB | lab(23.72, 42.39, -61.78) |
| CIE-LCH | lch(23.72, 74.93, 304.46°) |
| OKLab | oklab(36.1% 0.023 -0.1785) |
| OKLCH | oklch(36.1% 0.18 277.3) |
| XYZ | xyz(7.4100, 4.0147, 30.0841) |
| Luminance | 0.0401 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.44
Indigo Blue
#3A18B1
ΔE00 4.05
Cobalt Blue
#030AA7
ΔE00 4.69
Royal Blue (survey)
#0504AA
ΔE00 5.16
Ultramarine
#2000B1
ΔE00 5.31
Indigo (survey)
#380282
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2298 #8B9822
analogous
#225098 #2F2298 #6A2298
triadic
#2F2298 #982F22 #22982F
tetradic
#2F2298 #982250 #8B9822 #22986A
square
#2F2298 #982250 #8B9822 #22986A
split-complementary
#2F2298 #986A22 #509822
monochromatic
#100C34 #201766 #2F2298 #3E2DCA #685ADA
Accessibility & contrast
On white
11.65
#2F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2F2298 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2298
11.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2298 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2298 | 1.00 | 11.65 | 1.80 | 11.65 |
| #FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2f2298; /* rgb */ color: rgb(47, 34, 152); /* oklch */ color: oklch(36.1% 0.180 277.3);
Tailwind
colors: {
custom: {
50: '#7760b8',
500: '#2f2298',
950: '#000000',
},
}SCSS
$custom: #2f2298; $custom-light: #7760b8; $custom-dark: #000000;
JSON
{
"hex": "#2f2298",
"rgb": {
"r": 47,
"g": 34,
"b": 152
},
"hsl": {
"h": 246.61,
"s": 63.441,
"l": 36.471
},
"oklch": {
"l": 0.36098,
"c": 0.17998,
"h": 277.3
},
"luminance": 0.04015
}Semantic roles & 50–950 ramp
primary
#2F2298
secondary
#B3BE57
accent
#E641D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980