#2F38B6#2F38B6
#2F38B6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.195 H 271.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B6 |
|---|---|
| RGB | rgb(47, 56, 182) |
| HSL | hsl(236, 59%, 45%) |
| HSV | hsv(236, 74%, 71%) |
| CMYK | cmyk(74.2%, 69.2%, 0%, 28.6%) |
| CIE-LAB | lab(31.37, 39.69, -67.28) |
| CIE-LCH | lch(31.37, 78.12, 300.54°) |
| OKLab | oklab(42.47% 0.0055 -0.1947) |
| OKLCH | oklch(42.47% 0.195 271.6) |
| XYZ | xyz(11.0271, 6.8089, 44.9800) |
| Luminance | 0.0681 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.25
Blue Blue
#2242C7
ΔE00 3.70
Ocean Blue
#4F42B5
ΔE00 4.52
Blue With A Hint Of Purple
#533CC6
ΔE00 5.17
Blurple
#5539CC
ΔE00 5.78
Blue (survey)
#0343DF
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B6 #B6AD2F
analogous
#2F7CB6 #2F38B6 #6A2FB6
triadic
#2F38B6 #B62F38 #38B62F
tetradic
#2F38B6 #B62F7C #B6AD2F #2FB66A
square
#2F38B6 #B62F7C #B6AD2F #2FB66A
split-complementary
#2F38B6 #B66A2F #7CB62F
monochromatic
#161A55 #222985 #2F38B6 #5059D2 #8187DE
Accessibility & contrast
On white
8.89
#2F38B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2F38B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B6
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B6 | 1.00 | 8.89 | 2.36 | 8.89 |
| #FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f38b6; /* rgb */ color: rgb(47, 56, 182); /* oklch */ color: oklch(42.5% 0.195 271.6);
Tailwind
colors: {
custom: {
50: '#7c6fcd',
500: '#2f38b6',
950: '#000000',
},
}SCSS
$custom: #2f38b6; $custom-light: #7c6fcd; $custom-dark: #000000;
JSON
{
"hex": "#2f38b6",
"rgb": {
"r": 47,
"g": 56,
"b": 182
},
"hsl": {
"h": 236,
"s": 58.952,
"l": 44.902
},
"oklch": {
"l": 0.42467,
"c": 0.19474,
"h": 271.6
},
"luminance": 0.0681
}Semantic roles & 50–950 ramp
primary
#2F38B6
secondary
#C7C279
accent
#D846E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82