#2F31B3#2F31B3
#2F31B3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.198 H 272.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2F31B3 |
|---|---|
| RGB | rgb(47, 49, 179) |
| HSL | hsl(239, 58%, 44%) |
| HSV | hsv(239, 74%, 70%) |
| CMYK | cmyk(73.7%, 72.6%, 0%, 29.8%) |
| CIE-LAB | lab(29.55, 42.85, -68.50) |
| CIE-LCH | lch(29.55, 80.79, 302.03°) |
| OKLab | oklab(41.07% 0.0096 -0.1982) |
| OKLCH | oklch(41.07% 0.198 272.8) |
| XYZ | xyz(10.4046, 6.0546, 43.2594) |
| Luminance | 0.0606 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.03
Indigo Blue
#3A18B1
ΔE00 5.18
Blue Blue
#2242C7
ΔE00 5.45
Ocean Blue
#4F42B5
ΔE00 5.57
Blue With A Hint Of Purple
#533CC6
ΔE00 5.77
Blurple
#5539CC
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F31B3 #B3B12F
analogous
#2F73B3 #2F31B3 #6F2FB3
triadic
#2F31B3 #B32F31 #31B32F
tetradic
#2F31B3 #B32F73 #B3B12F #2FB36F
square
#2F31B3 #B32F73 #B3B12F #2FB36F
split-complementary
#2F31B3 #B36F2F #73B32F
monochromatic
#161652 #222483 #2F31B3 #4F51D1 #7F80DD
Accessibility & contrast
On white
9.50
#2F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#2F31B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F31B3
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F31B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F31B3 | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f31b3; /* rgb */ color: rgb(47, 49, 179); /* oklch */ color: oklch(41.1% 0.198 272.8);
Tailwind
colors: {
custom: {
50: '#7c6acb',
500: '#2f31b3',
950: '#000000',
},
}SCSS
$custom: #2f31b3; $custom-light: #7c6acb; $custom-dark: #000000;
JSON
{
"hex": "#2f31b3",
"rgb": {
"r": 47,
"g": 49,
"b": 179
},
"hsl": {
"h": 239.091,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.41072,
"c": 0.19841,
"h": 272.8
},
"luminance": 0.06056
}Semantic roles & 50–950 ramp
primary
#2F31B3
secondary
#C6C578
accent
#DF46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82