#2F31B5#2F31B5
#2F31B5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.201 H 272.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F31B5 |
|---|---|
| RGB | rgb(47, 49, 181) |
| HSL | hsl(239, 59%, 45%) |
| HSV | hsv(239, 74%, 71%) |
| CMYK | cmyk(74%, 72.9%, 0%, 29%) |
| CIE-LAB | lab(29.75, 43.52, -69.35) |
| CIE-LCH | lch(29.75, 81.88, 302.11°) |
| OKLab | oklab(41.28% 0.0093 -0.2007) |
| OKLCH | oklch(41.28% 0.201 272.7) |
| XYZ | xyz(10.6083, 6.1361, 44.3324) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.16
Indigo Blue
#3A18B1
ΔE00 5.18
Blue Blue
#2242C7
ΔE00 5.33
Ocean Blue
#4F42B5
ΔE00 5.53
Blue With A Hint Of Purple
#533CC6
ΔE00 5.61
Blurple
#5539CC
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F31B5 #B5B32F
analogous
#2F74B5 #2F31B5 #702FB5
triadic
#2F31B5 #B52F31 #31B52F
tetradic
#2F31B5 #B52F74 #B5B32F #2FB570
square
#2F31B5 #B52F74 #B5B32F #2FB570
split-complementary
#2F31B5 #B5702F #74B52F
monochromatic
#161754 #222484 #2F31B5 #5052D1 #8082DE
Accessibility & contrast
On white
9.43
#2F31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2F31B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F31B5
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F31B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F31B5 | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f31b5; /* rgb */ color: rgb(47, 49, 181); /* oklch */ color: oklch(41.3% 0.201 272.7);
Tailwind
colors: {
custom: {
50: '#7d6acc',
500: '#2f31b5',
950: '#000000',
},
}SCSS
$custom: #2f31b5; $custom-light: #7d6acc; $custom-dark: #000000;
JSON
{
"hex": "#2f31b5",
"rgb": {
"r": 47,
"g": 49,
"b": 181
},
"hsl": {
"h": 239.104,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.41278,
"c": 0.20089,
"h": 272.7
},
"luminance": 0.06137
}Semantic roles & 50–950 ramp
primary
#2F31B5
secondary
#C7C679
accent
#E046E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82