#2F31B2#2F31B2
#2F31B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.197 H 272.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2F31B2 |
|---|---|
| RGB | rgb(47, 49, 178) |
| HSL | hsl(239, 58%, 44%) |
| HSV | hsv(239, 74%, 70%) |
| CMYK | cmyk(73.6%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(29.45, 42.51, -68.07) |
| CIE-LCH | lch(29.45, 80.25, 301.99°) |
| OKLab | oklab(40.97% 0.0098 -0.1969) |
| OKLCH | oklch(40.97% 0.197 272.8) |
| XYZ | xyz(10.3038, 6.0143, 42.7287) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Indigo Blue
#3A18B1
ΔE00 5.19
Blue Blue
#2242C7
ΔE00 5.51
Ocean Blue
#4F42B5
ΔE00 5.60
Blue With A Hint Of Purple
#533CC6
ΔE00 5.85
True Blue
#010FCC
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F31B2 #B2B02F
analogous
#2F73B2 #2F31B2 #6F2FB2
triadic
#2F31B2 #B22F31 #31B22F
tetradic
#2F31B2 #B22F73 #B2B02F #2FB26F
square
#2F31B2 #B22F73 #B2B02F #2FB26F
split-complementary
#2F31B2 #B26F2F #73B22F
monochromatic
#151651 #222482 #2F31B2 #4E50D0 #7E80DD
Accessibility & contrast
On white
9.53
#2F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#2F31B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F31B2
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F31B2 | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f31b2; /* rgb */ color: rgb(47, 49, 178); /* oklch */ color: oklch(41.0% 0.197 272.8);
Tailwind
colors: {
custom: {
50: '#7c6aca',
500: '#2f31b2',
950: '#000000',
},
}SCSS
$custom: #2f31b2; $custom-light: #7c6aca; $custom-dark: #000000;
JSON
{
"hex": "#2f31b2",
"rgb": {
"r": 47,
"g": 49,
"b": 178
},
"hsl": {
"h": 239.084,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.40969,
"c": 0.19717,
"h": 272.8
},
"luminance": 0.06015
}Semantic roles & 50–950 ramp
primary
#2F31B2
secondary
#C6C577
accent
#DF46E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82