#2F38B4#2F38B4
#2F38B4 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.192 H 271.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B4 |
|---|---|
| RGB | rgb(47, 56, 180) |
| HSL | hsl(236, 59%, 45%) |
| HSV | hsv(236, 74%, 71%) |
| CMYK | cmyk(73.9%, 68.9%, 0%, 29.4%) |
| CIE-LAB | lab(31.18, 38.99, -66.41) |
| CIE-LCH | lch(31.18, 77.01, 300.42°) |
| OKLab | oklab(42.27% 0.0057 -0.1921) |
| OKLCH | oklch(42.27% 0.192 271.7) |
| XYZ | xyz(10.8219, 6.7268, 43.8992) |
| Luminance | 0.0673 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.04
Blue Blue
#2242C7
ΔE00 3.84
Ocean Blue
#4F42B5
ΔE00 4.56
Blue With A Hint Of Purple
#533CC6
ΔE00 5.34
Blueberry
#464196
ΔE00 5.97
Blurple
#5539CC
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B4 #B4AB2F
analogous
#2F7BB4 #2F38B4 #692FB4
triadic
#2F38B4 #B42F38 #38B42F
tetradic
#2F38B4 #B42F7B #B4AB2F #2FB469
square
#2F38B4 #B42F7B #B4AB2F #2FB469
split-complementary
#2F38B4 #B4692F #7BB42F
monochromatic
#161A53 #222983 #2F38B4 #4F58D1 #8086DE
Accessibility & contrast
On white
8.95
#2F38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2F38B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B4
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B4 | 1.00 | 8.95 | 2.35 | 8.95 |
| #FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2f38b4; /* rgb */ color: rgb(47, 56, 180); /* oklch */ color: oklch(42.3% 0.192 271.7);
Tailwind
colors: {
custom: {
50: '#7c6fcc',
500: '#2f38b4',
950: '#000000',
},
}SCSS
$custom: #2f38b4; $custom-light: #7c6fcc; $custom-dark: #000000;
JSON
{
"hex": "#2f38b4",
"rgb": {
"r": 47,
"g": 56,
"b": 180
},
"hsl": {
"h": 235.94,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.42271,
"c": 0.19219,
"h": 271.7
},
"luminance": 0.06728
}Semantic roles & 50–950 ramp
primary
#2F38B4
secondary
#C7C178
accent
#D746E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82