#2F277E#2F277E
#2F277E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.141 H 280.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F277E |
|---|---|
| RGB | rgb(47, 39, 126) |
| HSL | hsl(246, 53%, 32%) |
| HSV | hsv(246, 69%, 49%) |
| CMYK | cmyk(62.7%, 69%, 0%, 50.6%) |
| CIE-LAB | lab(22.16, 30.78, -48.12) |
| CIE-LCH | lch(22.16, 57.12, 302.60°) |
| OKLab | oklab(34.2% 0.0246 -0.1386) |
| OKLCH | oklch(34.2% 0.141 280) |
| XYZ | xyz(5.6625, 3.5613, 20.1236) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.35
Royal
#0C1793
ΔE00 5.72
Darkslateblue
#483D8B
ΔE00 6.78
Indigo (survey)
#380282
ΔE00 7.24
Blueberry
#464196
ΔE00 7.92
Dark Royal Blue
#02066F
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F277E #767E27
analogous
#274B7E #2F277E #5A277E
triadic
#2F277E #7E2F27 #277E2F
tetradic
#2F277E #7E274B #767E27 #277E5A
square
#2F277E #7E274B #767E27 #277E5A
split-complementary
#2F277E #7E5A27 #4B7E27
monochromatic
#0C0A21 #1E194F #2F277E #4035AD #6055CA
Accessibility & contrast
On white
12.26
#2F277E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2F277E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F277E
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F277E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F277E | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f277e; /* rgb */ color: rgb(47, 39, 126); /* oklch */ color: oklch(34.2% 0.141 280.0);
Tailwind
colors: {
custom: {
50: '#7162a4',
500: '#2f277e',
950: '#000000',
},
}SCSS
$custom: #2f277e; $custom-light: #7162a4; $custom-dark: #000000;
JSON
{
"hex": "#2f277e",
"rgb": {
"r": 47,
"g": 39,
"b": 126
},
"hsl": {
"h": 245.517,
"s": 52.727,
"l": 32.353
},
"oklch": {
"l": 0.34201,
"c": 0.14078,
"h": 280
},
"luminance": 0.03562
}Semantic roles & 50–950 ramp
primary
#2F277E
secondary
#A7AF52
accent
#DC4CCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F