#2F318D#2F318D
#2F318D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.149 H 275.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2F318D |
|---|---|
| RGB | rgb(47, 49, 141) |
| HSL | hsl(239, 50%, 37%) |
| HSV | hsv(239, 67%, 55%) |
| CMYK | cmyk(66.7%, 65.2%, 0%, 44.7%) |
| CIE-LAB | lab(25.93, 29.61, -51.36) |
| CIE-LCH | lch(25.93, 59.28, 299.96°) |
| OKLab | oklab(37.36% 0.0143 -0.1481) |
| OKLCH | oklch(37.36% 0.149 275.5) |
| XYZ | xyz(7.0767, 4.7234, 25.7329) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.83
Darkslateblue
#483D8B
ΔE00 5.08
Blueberry
#464196
ΔE00 5.26
Royal
#0C1793
ΔE00 6.82
Midnight Blue
#191970
ΔE00 7.31
Indigo Blue
#3A18B1
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F318D #8D8B2F
analogous
#2F608D #2F318D #5C2F8D
triadic
#2F318D #8D2F31 #318D2F
tetradic
#2F318D #8D2F60 #8D8B2F #2F8D5C
square
#2F318D #8D2F60 #8D8B2F #2F8D5C
split-complementary
#2F318D #8D5C2F #608D2F
monochromatic
#101131 #20215F #2F318D #3E41BB #696BCD
Accessibility & contrast
On white
10.80
#2F318D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2F318D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F318D
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F318D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F318D | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f318d; /* rgb */ color: rgb(47, 49, 141); /* oklch */ color: oklch(37.4% 0.149 275.5);
Tailwind
colors: {
custom: {
50: '#7469af',
500: '#2f318d',
950: '#000000',
},
}SCSS
$custom: #2f318d; $custom-light: #7469af; $custom-dark: #000000;
JSON
{
"hex": "#2f318d",
"rgb": {
"r": 47,
"g": 49,
"b": 141
},
"hsl": {
"h": 238.723,
"s": 50,
"l": 36.863
},
"oklch": {
"l": 0.37358,
"c": 0.14876,
"h": 275.5
},
"luminance": 0.04724
}Semantic roles & 50–950 ramp
primary
#2F318D
secondary
#B4B264
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F