#2F318C#2F318C
#2F318C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.147 H 275.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2F318C |
|---|---|
| RGB | rgb(47, 49, 140) |
| HSL | hsl(239, 50%, 37%) |
| HSV | hsv(239, 66%, 55%) |
| CMYK | cmyk(66.4%, 65%, 0%, 45.1%) |
| CIE-LAB | lab(25.84, 29.25, -50.88) |
| CIE-LCH | lch(25.84, 58.69, 299.89°) |
| OKLab | oklab(37.27% 0.0144 -0.1467) |
| OKLCH | oklch(37.27% 0.147 275.6) |
| XYZ | xyz(7.0027, 4.6938, 25.3428) |
| Luminance | 0.0469 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.97
Darkslateblue
#483D8B
ΔE00 5.05
Blueberry
#464196
ΔE00 5.28
Royal
#0C1793
ΔE00 6.88
Midnight Blue
#191970
ΔE00 7.24
Indigo Blue
#3A18B1
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F318C #8C8A2F
analogous
#2F608C #2F318C #5C2F8C
triadic
#2F318C #8C2F31 #318C2F
tetradic
#2F318C #8C2F60 #8C8A2F #2F8C5C
square
#2F318C #8C2F60 #8C8A2F #2F8C5C
split-complementary
#2F318C #8C5C2F #608C2F
monochromatic
#101130 #20215E #2F318C #3E41BA #696BCD
Accessibility & contrast
On white
10.83
#2F318C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2F318C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F318C
10.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F318C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F318C | 1.00 | 10.83 | 1.94 | 10.83 |
| #FFFFFF | 10.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f318c; /* rgb */ color: rgb(47, 49, 140); /* oklch */ color: oklch(37.3% 0.147 275.6);
Tailwind
colors: {
custom: {
50: '#7369ae',
500: '#2f318c',
950: '#000000',
},
}SCSS
$custom: #2f318c; $custom-light: #7369ae; $custom-dark: #000000;
JSON
{
"hex": "#2f318c",
"rgb": {
"r": 47,
"g": 49,
"b": 140
},
"hsl": {
"h": 238.71,
"s": 49.733,
"l": 36.667
},
"oklch": {
"l": 0.37267,
"c": 0.14738,
"h": 275.6
},
"luminance": 0.04694
}Semantic roles & 50–950 ramp
primary
#2F318C
secondary
#B4B263
accent
#D64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F