#2F267E#2F267E
#2F267E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.142 H 280.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2F267E |
|---|---|
| RGB | rgb(47, 38, 126) |
| HSL | hsl(246, 54%, 32%) |
| HSV | hsv(246, 70%, 49%) |
| CMYK | cmyk(62.7%, 69.8%, 0%, 50.6%) |
| CIE-LAB | lab(21.93, 31.41, -48.50) |
| CIE-LCH | lch(21.93, 57.78, 302.93°) |
| OKLab | oklab(34.03% 0.0255 -0.1397) |
| OKLCH | oklch(34.03% 0.142 280.3) |
| XYZ | xyz(5.6301, 3.4965, 20.1128) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.18
Royal
#0C1793
ΔE00 5.53
Indigo (survey)
#380282
ΔE00 6.94
Darkslateblue
#483D8B
ΔE00 6.99
Dark Royal Blue
#02066F
ΔE00 7.77
Darkblue
#00008B
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F267E #757E26
analogous
#26497E #2F267E #5B267E
triadic
#2F267E #7E2F26 #267E2F
tetradic
#2F267E #7E2649 #757E26 #267E5B
square
#2F267E #7E2649 #757E26 #267E5B
split-complementary
#2F267E #7E5B26 #497E26
monochromatic
#0C0A20 #1D184F #2F267E #4134AD #5F53CB
Accessibility & contrast
On white
12.36
#2F267E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2F267E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F267E
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F267E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F267E | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f267e; /* rgb */ color: rgb(47, 38, 126); /* oklch */ color: oklch(34.0% 0.142 280.3);
Tailwind
colors: {
custom: {
50: '#7161a4',
500: '#2f267e',
950: '#000000',
},
}SCSS
$custom: #2f267e; $custom-light: #7161a4; $custom-dark: #000000;
JSON
{
"hex": "#2f267e",
"rgb": {
"r": 47,
"g": 38,
"b": 126
},
"hsl": {
"h": 246.136,
"s": 53.659,
"l": 32.157
},
"oklch": {
"l": 0.34033,
"c": 0.14204,
"h": 280.3
},
"luminance": 0.03497
}Semantic roles & 50–950 ramp
primary
#2F267E
secondary
#A6B050
accent
#DD4BCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F