#2F38B7#2F38B7
#2F38B7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.196 H 271.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B7 |
|---|---|
| RGB | rgb(47, 56, 183) |
| HSL | hsl(236, 59%, 45%) |
| HSV | hsv(236, 74%, 72%) |
| CMYK | cmyk(74.3%, 69.4%, 0%, 28.2%) |
| CIE-LAB | lab(31.46, 40.04, -67.72) |
| CIE-LCH | lch(31.46, 78.67, 300.59°) |
| OKLab | oklab(42.57% 0.0054 -0.1959) |
| OKLCH | oklch(42.57% 0.196 271.6) |
| XYZ | xyz(11.1308, 6.8504, 45.5262) |
| Luminance | 0.0685 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.36
Blue Blue
#2242C7
ΔE00 3.63
Ocean Blue
#4F42B5
ΔE00 4.50
Blue With A Hint Of Purple
#533CC6
ΔE00 5.09
Blurple
#5539CC
ΔE00 5.69
Blue (survey)
#0343DF
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B7 #B7AE2F
analogous
#2F7CB7 #2F38B7 #6A2FB7
triadic
#2F38B7 #B72F38 #38B72F
tetradic
#2F38B7 #B72F7C #B7AE2F #2FB76A
square
#2F38B7 #B72F7C #B7AE2F #2FB76A
split-complementary
#2F38B7 #B76A2F #7CB72F
monochromatic
#161A56 #222986 #2F38B7 #5159D2 #8288DF
Accessibility & contrast
On white
8.86
#2F38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#2F38B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B7
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B7 | 1.00 | 8.86 | 2.37 | 8.86 |
| #FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f38b7; /* rgb */ color: rgb(47, 56, 183); /* oklch */ color: oklch(42.6% 0.196 271.6);
Tailwind
colors: {
custom: {
50: '#7d6fce',
500: '#2f38b7',
950: '#000000',
},
}SCSS
$custom: #2f38b7; $custom-light: #7d6fce; $custom-dark: #000000;
JSON
{
"hex": "#2f38b7",
"rgb": {
"r": 47,
"g": 56,
"b": 183
},
"hsl": {
"h": 236.029,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.42566,
"c": 0.196,
"h": 271.6
},
"luminance": 0.06852
}Semantic roles & 50–950 ramp
primary
#2F38B7
secondary
#C8C37A
accent
#D845E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82