#2F2F8A#2F2F8A
#2F2F8A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.147 H 276.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F8A |
|---|---|
| RGB | rgb(47, 47, 138) |
| HSL | hsl(240, 49%, 36%) |
| HSV | hsv(240, 66%, 54%) |
| CMYK | cmyk(65.9%, 65.9%, 0%, 45.9%) |
| CIE-LAB | lab(25.17, 29.84, -50.73) |
| CIE-LCH | lch(25.17, 58.86, 300.46°) |
| OKLab | oklab(36.72% 0.0163 -0.1462) |
| OKLCH | oklch(36.72% 0.147 276.3) |
| XYZ | xyz(6.7748, 4.4718, 24.5460) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.30
Sapphire (survey)
#2138AB
ΔE00 5.45
Blueberry
#464196
ΔE00 5.74
Royal
#0C1793
ΔE00 6.45
Midnight Blue
#191970
ΔE00 6.66
Indigo Blue
#3A18B1
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F8A #8A8A2F
analogous
#2F5D8A #2F2F8A #5D2F8A
triadic
#2F2F8A #8A2F2F #2F8A2F
tetradic
#2F2F8A #8A2F5D #8A8A2F #2F8A5D
square
#2F2F8A #8A2F5D #8A8A2F #2F8A5D
split-complementary
#2F2F8A #8A5D2F #5D8A2F
monochromatic
#10102F #1F1F5C #2F2F8A #3F3FB8 #6868CC
Accessibility & contrast
On white
11.09
#2F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2F2F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F8A
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F8A | 1.00 | 11.09 | 1.89 | 11.09 |
| #FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f2f8a; /* rgb */ color: rgb(47, 47, 138); /* oklch */ color: oklch(36.7% 0.147 276.3);
Tailwind
colors: {
custom: {
50: '#7368ad',
500: '#2f2f8a',
950: '#000000',
},
}SCSS
$custom: #2f2f8a; $custom-light: #7368ad; $custom-dark: #000000;
JSON
{
"hex": "#2f2f8a",
"rgb": {
"r": 47,
"g": 47,
"b": 138
},
"hsl": {
"h": 240,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.36722,
"c": 0.14715,
"h": 276.3
},
"luminance": 0.04472
}Semantic roles & 50–950 ramp
primary
#2F2F8A
secondary
#B3B362
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F