#2F319F#2F319F
#2F319F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.173 H 274.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2F319F |
|---|---|
| RGB | rgb(47, 49, 159) |
| HSL | hsl(239, 54%, 40%) |
| HSV | hsv(239, 70%, 62%) |
| CMYK | cmyk(70.4%, 69.2%, 0%, 37.6%) |
| CIE-LAB | lab(27.58, 35.97, -59.70) |
| CIE-LCH | lch(27.58, 69.70, 301.07°) |
| OKLab | oklab(39.07% 0.0125 -0.1725) |
| OKLCH | oklch(39.07% 0.173 274.1) |
| XYZ | xyz(8.5265, 5.3034, 33.3685) |
| Luminance | 0.0530 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Blueberry
#464196
ΔE00 5.57
Indigo Blue
#3A18B1
ΔE00 6.07
Darkslateblue
#483D8B
ΔE00 6.19
Ocean Blue
#4F42B5
ΔE00 6.56
Royal
#0C1793
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F319F #9F9D2F
analogous
#2F699F #2F319F #652F9F
triadic
#2F319F #9F2F31 #319F2F
tetradic
#2F319F #9F2F69 #9F9D2F #2F9F65
square
#2F319F #9F2F69 #9F9D2F #2F9F65
split-complementary
#2F319F #9F652F #699F2F
monochromatic
#131441 #212270 #2F319F #4446C8 #7375D6
Accessibility & contrast
On white
10.19
#2F319F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#2F319F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F319F
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F319F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F319F | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f319f; /* rgb */ color: rgb(47, 49, 159); /* oklch */ color: oklch(39.1% 0.173 274.1);
Tailwind
colors: {
custom: {
50: '#786abc',
500: '#2f319f',
950: '#000000',
},
}SCSS
$custom: #2f319f; $custom-light: #786abc; $custom-dark: #000000;
JSON
{
"hex": "#2f319f",
"rgb": {
"r": 47,
"g": 49,
"b": 159
},
"hsl": {
"h": 238.929,
"s": 54.369,
"l": 40.392
},
"oklch": {
"l": 0.39065,
"c": 0.17296,
"h": 274.1
},
"luminance": 0.05304
}Semantic roles & 50–950 ramp
primary
#2F319F
secondary
#BDBC6D
accent
#DB4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81