#2F319D#2F319D
#2F319D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.170 H 274.3°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2F319D |
|---|---|
| RGB | rgb(47, 49, 157) |
| HSL | hsl(239, 54%, 40%) |
| HSV | hsv(239, 70%, 62%) |
| CMYK | cmyk(70.1%, 68.8%, 0%, 38.4%) |
| CIE-LAB | lab(27.39, 35.27, -58.79) |
| CIE-LCH | lch(27.39, 68.56, 300.96°) |
| OKLab | oklab(38.87% 0.0127 -0.1699) |
| OKLCH | oklch(38.87% 0.17 274.3) |
| XYZ | xyz(8.3544, 5.2345, 32.4618) |
| Luminance | 0.0524 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.11
Blueberry
#464196
ΔE00 5.49
Darkslateblue
#483D8B
ΔE00 6.04
Indigo Blue
#3A18B1
ΔE00 6.24
Royal
#0C1793
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F319D #9D9B2F
analogous
#2F689D #2F319D #642F9D
triadic
#2F319D #9D2F31 #319D2F
tetradic
#2F319D #9D2F68 #9D9B2F #2F9D64
square
#2F319D #9D2F68 #9D9B2F #2F9D64
split-complementary
#2F319D #9D642F #689D2F
monochromatic
#13143F #21226E #2F319D #4345C7 #7273D5
Accessibility & contrast
On white
10.26
#2F319D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2F319D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F319D
10.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F319D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F319D | 1.00 | 10.26 | 2.05 | 10.26 |
| #FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f319d; /* rgb */ color: rgb(47, 49, 157); /* oklch */ color: oklch(38.9% 0.170 274.3);
Tailwind
colors: {
custom: {
50: '#776abb',
500: '#2f319d',
950: '#000000',
},
}SCSS
$custom: #2f319d; $custom-light: #776abb; $custom-dark: #000000;
JSON
{
"hex": "#2f319d",
"rgb": {
"r": 47,
"g": 49,
"b": 157
},
"hsl": {
"h": 238.909,
"s": 53.922,
"l": 40
},
"oklch": {
"l": 0.3887,
"c": 0.17034,
"h": 274.3
},
"luminance": 0.05235
}Semantic roles & 50–950 ramp
primary
#2F319D
secondary
#BCBB6B
accent
#DB4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81