#2F38B1#2F38B1
#2F38B1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.188 H 271.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B1 |
|---|---|
| RGB | rgb(47, 56, 177) |
| HSL | hsl(236, 58%, 44%) |
| HSV | hsv(236, 73%, 69%) |
| CMYK | cmyk(73.4%, 68.4%, 0%, 30.6%) |
| CIE-LAB | lab(30.89, 37.94, -65.09) |
| CIE-LCH | lch(30.89, 75.34, 300.24°) |
| OKLab | oklab(41.98% 0.006 -0.1883) |
| OKLCH | oklch(41.98% 0.188 271.8) |
| XYZ | xyz(10.5196, 6.6059, 42.3071) |
| Luminance | 0.0661 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.74
Blue Blue
#2242C7
ΔE00 4.09
Ocean Blue
#4F42B5
ΔE00 4.66
Blue With A Hint Of Purple
#533CC6
ΔE00 5.62
Blueberry
#464196
ΔE00 5.70
Blurple
#5539CC
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B1 #B1A82F
analogous
#2F79B1 #2F38B1 #672FB1
triadic
#2F38B1 #B12F38 #38B12F
tetradic
#2F38B1 #B12F79 #B1A82F #2FB167
square
#2F38B1 #B12F79 #B1A82F #2FB167
split-complementary
#2F38B1 #B1672F #79B12F
monochromatic
#151950 #222981 #2F38B1 #4D56D0 #7E84DD
Accessibility & contrast
On white
9.05
#2F38B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#2F38B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B1
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B1 | 1.00 | 9.05 | 2.32 | 9.05 |
| #FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2f38b1; /* rgb */ color: rgb(47, 56, 177); /* oklch */ color: oklch(42.0% 0.188 271.8);
Tailwind
colors: {
custom: {
50: '#7b6fc9',
500: '#2f38b1',
950: '#000000',
},
}SCSS
$custom: #2f38b1; $custom-light: #7b6fc9; $custom-dark: #000000;
JSON
{
"hex": "#2f38b1",
"rgb": {
"r": 47,
"g": 56,
"b": 177
},
"hsl": {
"h": 235.846,
"s": 58.036,
"l": 43.922
},
"oklch": {
"l": 0.41979,
"c": 0.18836,
"h": 271.8
},
"luminance": 0.06607
}Semantic roles & 50–950 ramp
primary
#2F38B1
secondary
#C5C076
accent
#D747E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82