#2F267C#2F267C
#2F267C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.139 H 280.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F267C |
|---|---|
| RGB | rgb(47, 38, 124) |
| HSL | hsl(246, 53%, 32%) |
| HSV | hsv(246, 69%, 49%) |
| CMYK | cmyk(62.1%, 69.4%, 0%, 51.4%) |
| CIE-LAB | lab(21.75, 30.72, -47.54) |
| CIE-LCH | lch(21.75, 56.60, 302.87°) |
| OKLab | oklab(33.84% 0.0257 -0.1369) |
| OKLCH | oklch(33.84% 0.139 280.6) |
| XYZ | xyz(5.5023, 3.4454, 19.4400) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.09
Royal
#0C1793
ΔE00 5.79
Darkslateblue
#483D8B
ΔE00 7.02
Indigo (survey)
#380282
ΔE00 7.06
Dark Royal Blue
#02066F
ΔE00 7.77
Deep Blue
#040273
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F267C #737C26
analogous
#26487C #2F267C #5A267C
triadic
#2F267C #7C2F26 #267C2F
tetradic
#2F267C #7C2648 #737C26 #267C5A
square
#2F267C #7C2648 #737C26 #267C5A
split-complementary
#2F267C #7C5A26 #487C26
monochromatic
#0B091E #1D184D #2F267C #4134AB #5F52CA
Accessibility & contrast
On white
12.43
#2F267C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F267C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F267C
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F267C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F267C | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f267c; /* rgb */ color: rgb(47, 38, 124); /* oklch */ color: oklch(33.8% 0.139 280.6);
Tailwind
colors: {
custom: {
50: '#7161a3',
500: '#2f267c',
950: '#000000',
},
}SCSS
$custom: #2f267c; $custom-light: #7161a3; $custom-dark: #000000;
JSON
{
"hex": "#2f267c",
"rgb": {
"r": 47,
"g": 38,
"b": 124
},
"hsl": {
"h": 246.279,
"s": 53.086,
"l": 31.765
},
"oklch": {
"l": 0.33841,
"c": 0.13931,
"h": 280.6
},
"luminance": 0.03446
}Semantic roles & 50–950 ramp
primary
#2F267C
secondary
#A4AE50
accent
#DC4BCD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F