#2F31AB#2F31AB
#2F31AB is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.188 H 273.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F31AB |
|---|---|
| RGB | rgb(47, 49, 171) |
| HSL | hsl(239, 57%, 43%) |
| HSV | hsv(239, 73%, 67%) |
| CMYK | cmyk(72.5%, 71.3%, 0%, 32.9%) |
| CIE-LAB | lab(28.75, 40.13, -65.03) |
| CIE-LCH | lch(28.75, 76.42, 301.68°) |
| OKLab | oklab(40.26% 0.0109 -0.1881) |
| OKLCH | oklch(40.26% 0.188 273.3) |
| XYZ | xyz(9.6188, 5.7403, 39.1212) |
| Luminance | 0.0574 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.69
Indigo Blue
#3A18B1
ΔE00 5.35
Ocean Blue
#4F42B5
ΔE00 5.85
Blue Blue
#2242C7
ΔE00 6.00
Blueberry
#464196
ΔE00 6.26
Blue With A Hint Of Purple
#533CC6
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F31AB #ABA92F
analogous
#2F6FAB #2F31AB #6B2FAB
triadic
#2F31AB #AB2F31 #31AB2F
tetradic
#2F31AB #AB2F6F #ABA92F #2FAB6B
square
#2F31AB #AB2F6F #ABA92F #2FAB6B
split-complementary
#2F31AB #AB6B2F #6FAB2F
monochromatic
#15154B #22237B #2F31AB #4A4CCD #7A7CDA
Accessibility & contrast
On white
9.78
#2F31AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#2F31AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F31AB
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F31AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F31AB | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2f31ab; /* rgb */ color: rgb(47, 49, 171); /* oklch */ color: oklch(40.3% 0.188 273.3);
Tailwind
colors: {
custom: {
50: '#7a6ac5',
500: '#2f31ab',
950: '#000000',
},
}SCSS
$custom: #2f31ab; $custom-light: #7a6ac5; $custom-dark: #000000;
JSON
{
"hex": "#2f31ab",
"rgb": {
"r": 47,
"g": 49,
"b": 171
},
"hsl": {
"h": 239.032,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.40257,
"c": 0.18839,
"h": 273.3
},
"luminance": 0.05741
}Semantic roles & 50–950 ramp
primary
#2F31AB
secondary
#C3C173
accent
#DE48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82