#2F38B5#2F38B5
#2F38B5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.193 H 271.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38B5 |
|---|---|
| RGB | rgb(47, 56, 181) |
| HSL | hsl(236, 59%, 45%) |
| HSV | hsv(236, 74%, 71%) |
| CMYK | cmyk(74%, 69.1%, 0%, 29%) |
| CIE-LAB | lab(31.27, 39.34, -66.85) |
| CIE-LCH | lch(31.27, 77.57, 300.48°) |
| OKLab | oklab(42.37% 0.0056 -0.1934) |
| OKLCH | oklch(42.37% 0.193 271.7) |
| XYZ | xyz(10.9241, 6.7677, 44.4377) |
| Luminance | 0.0677 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.14
Blue Blue
#2242C7
ΔE00 3.77
Ocean Blue
#4F42B5
ΔE00 4.54
Blue With A Hint Of Purple
#533CC6
ΔE00 5.26
Blurple
#5539CC
ΔE00 5.88
Blueberry
#464196
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38B5 #B5AC2F
analogous
#2F7BB5 #2F38B5 #692FB5
triadic
#2F38B5 #B52F38 #38B52F
tetradic
#2F38B5 #B52F7B #B5AC2F #2FB569
square
#2F38B5 #B52F7B #B5AC2F #2FB569
split-complementary
#2F38B5 #B5692F #7BB52F
monochromatic
#161A54 #222984 #2F38B5 #5058D1 #8087DE
Accessibility & contrast
On white
8.92
#2F38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2F38B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38B5
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38B5 | 1.00 | 8.92 | 2.35 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f38b5; /* rgb */ color: rgb(47, 56, 181); /* oklch */ color: oklch(42.4% 0.193 271.7);
Tailwind
colors: {
custom: {
50: '#7c6fcc',
500: '#2f38b5',
950: '#000000',
},
}SCSS
$custom: #2f38b5; $custom-light: #7c6fcc; $custom-dark: #000000;
JSON
{
"hex": "#2f38b5",
"rgb": {
"r": 47,
"g": 56,
"b": 181
},
"hsl": {
"h": 235.97,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.42369,
"c": 0.19347,
"h": 271.7
},
"luminance": 0.06769
}Semantic roles & 50–950 ramp
primary
#2F38B5
secondary
#C7C279
accent
#D746E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82