#2F38B3#2F38B3
#2F38B3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.191 H 271.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B3 |
|---|---|
| RGB | rgb(47, 56, 179) |
| HSL | hsl(236, 58%, 44%) |
| HSV | hsv(236, 74%, 70%) |
| CMYK | cmyk(73.7%, 68.7%, 0%, 29.8%) |
| CIE-LAB | lab(31.08, 38.64, -65.97) |
| CIE-LCH | lch(31.08, 76.46, 300.36°) |
| OKLab | oklab(42.17% 0.0058 -0.1908) |
| OKLCH | oklch(42.17% 0.191 271.7) |
| XYZ | xyz(10.7204, 6.6862, 43.3647) |
| Luminance | 0.0669 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.93
Blue Blue
#2242C7
ΔE00 3.92
Ocean Blue
#4F42B5
ΔE00 4.59
Blue With A Hint Of Purple
#533CC6
ΔE00 5.43
Blueberry
#464196
ΔE00 5.88
Blurple
#5539CC
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B3 #B3AA2F
analogous
#2F7AB3 #2F38B3 #682FB3
triadic
#2F38B3 #B32F38 #38B32F
tetradic
#2F38B3 #B32F7A #B3AA2F #2FB368
square
#2F38B3 #B32F7A #B3AA2F #2FB368
split-complementary
#2F38B3 #B3682F #7AB32F
monochromatic
#161A52 #222983 #2F38B3 #4F57D1 #7F85DD
Accessibility & contrast
On white
8.98
#2F38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#2F38B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B3
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B3 | 1.00 | 8.98 | 2.34 | 8.98 |
| #FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2f38b3; /* rgb */ color: rgb(47, 56, 179); /* oklch */ color: oklch(42.2% 0.191 271.7);
Tailwind
colors: {
custom: {
50: '#7c6fcb',
500: '#2f38b3',
950: '#000000',
},
}SCSS
$custom: #2f38b3; $custom-light: #7c6fcb; $custom-dark: #000000;
JSON
{
"hex": "#2f38b3",
"rgb": {
"r": 47,
"g": 56,
"b": 179
},
"hsl": {
"h": 235.909,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.42174,
"c": 0.19092,
"h": 271.7
},
"luminance": 0.06687
}Semantic roles & 50–950 ramp
primary
#2F38B3
secondary
#C6C178
accent
#D746E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82