#2F38B2#2F38B2
#2F38B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.190 H 271.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B2 |
|---|---|
| RGB | rgb(47, 56, 178) |
| HSL | hsl(236, 58%, 44%) |
| HSV | hsv(236, 74%, 70%) |
| CMYK | cmyk(73.6%, 68.5%, 0%, 30.2%) |
| CIE-LAB | lab(30.99, 38.29, -65.53) |
| CIE-LCH | lch(30.99, 75.90, 300.30°) |
| OKLab | oklab(42.08% 0.0059 -0.1895) |
| OKLCH | oklch(42.08% 0.19 271.8) |
| XYZ | xyz(10.6196, 6.6459, 42.8340) |
| Luminance | 0.0665 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.83
Blue Blue
#2242C7
ΔE00 4.00
Ocean Blue
#4F42B5
ΔE00 4.62
Blue With A Hint Of Purple
#533CC6
ΔE00 5.53
Blueberry
#464196
ΔE00 5.79
Blurple
#5539CC
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B2 #B2A92F
analogous
#2F7AB2 #2F38B2 #682FB2
triadic
#2F38B2 #B22F38 #38B22F
tetradic
#2F38B2 #B22F7A #B2A92F #2FB268
square
#2F38B2 #B22F7A #B2A92F #2FB268
split-complementary
#2F38B2 #B2682F #7AB22F
monochromatic
#151A51 #222982 #2F38B2 #4E57D0 #7E85DD
Accessibility & contrast
On white
9.02
#2F38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#2F38B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B2
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B2 | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2f38b2; /* rgb */ color: rgb(47, 56, 178); /* oklch */ color: oklch(42.1% 0.190 271.8);
Tailwind
colors: {
custom: {
50: '#7b6fca',
500: '#2f38b2',
950: '#000000',
},
}SCSS
$custom: #2f38b2; $custom-light: #7b6fca; $custom-dark: #000000;
JSON
{
"hex": "#2f38b2",
"rgb": {
"r": 47,
"g": 56,
"b": 178
},
"hsl": {
"h": 235.878,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.42076,
"c": 0.18964,
"h": 271.8
},
"luminance": 0.06647
}Semantic roles & 50–950 ramp
primary
#2F38B2
secondary
#C6C077
accent
#D746E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82