#2F2F8B#2F2F8B
#2F2F8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.149 H 276.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F8B |
|---|---|
| RGB | rgb(47, 47, 139) |
| HSL | hsl(240, 49%, 36%) |
| HSV | hsv(240, 66%, 55%) |
| CMYK | cmyk(66.2%, 66.2%, 0%, 45.5%) |
| CIE-LAB | lab(25.26, 30.19, -51.21) |
| CIE-LCH | lch(25.26, 59.45, 300.52°) |
| OKLab | oklab(36.82% 0.0162 -0.1476) |
| OKLCH | oklch(36.82% 0.149 276.3) |
| XYZ | xyz(6.8475, 4.5009, 24.9290) |
| Luminance | 0.0450 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.33
Darkslateblue
#483D8B
ΔE00 5.33
Blueberry
#464196
ΔE00 5.72
Royal
#0C1793
ΔE00 6.39
Midnight Blue
#191970
ΔE00 6.73
Indigo Blue
#3A18B1
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F8B #8B8B2F
analogous
#2F5D8B #2F2F8B #5D2F8B
triadic
#2F2F8B #8B2F2F #2F8B2F
tetradic
#2F2F8B #8B2F5D #8B8B2F #2F8B5D
square
#2F2F8B #8B2F5D #8B8B2F #2F8B5D
split-complementary
#2F2F8B #8B5D2F #5D8B2F
monochromatic
#101030 #20205D #2F2F8B #3E3EB9 #6868CC
Accessibility & contrast
On white
11.05
#2F2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2F2F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F8B
11.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F8B | 1.00 | 11.05 | 1.90 | 11.05 |
| #FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f2f8b; /* rgb */ color: rgb(47, 47, 139); /* oklch */ color: oklch(36.8% 0.149 276.3);
Tailwind
colors: {
custom: {
50: '#7368ae',
500: '#2f2f8b',
950: '#000000',
},
}SCSS
$custom: #2f2f8b; $custom-light: #7368ae; $custom-dark: #000000;
JSON
{
"hex": "#2f2f8b",
"rgb": {
"r": 47,
"g": 47,
"b": 139
},
"hsl": {
"h": 240,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.36815,
"c": 0.14853,
"h": 276.3
},
"luminance": 0.04501
}Semantic roles & 50–950 ramp
primary
#2F2F8B
secondary
#B3B363
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F