#2F38AF#2F38AF
#2F38AF is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.186 H 271.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2F38AF |
|---|---|
| RGB | rgb(47, 56, 175) |
| HSL | hsl(236, 58%, 44%) |
| HSV | hsv(236, 73%, 69%) |
| CMYK | cmyk(73.1%, 68%, 0%, 31.4%) |
| CIE-LAB | lab(30.70, 37.23, -64.21) |
| CIE-LCH | lch(30.70, 74.22, 300.11°) |
| OKLab | oklab(41.79% 0.0062 -0.1857) |
| OKLCH | oklch(41.79% 0.186 271.9) |
| XYZ | xyz(10.3217, 6.5268, 41.2650) |
| Luminance | 0.0653 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.58
Blue Blue
#2242C7
ΔE00 4.26
Ocean Blue
#4F42B5
ΔE00 4.74
Blueberry
#464196
ΔE00 5.52
Blue With A Hint Of Purple
#533CC6
ΔE00 5.82
Blurple
#5539CC
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F38AF #AFA62F
analogous
#2F78AF #2F38AF #662FAF
triadic
#2F38AF #AF2F38 #38AF2F
tetradic
#2F38AF #AF2F78 #AFA62F #2FAF66
square
#2F38AF #AF2F78 #AFA62F #2FAF66
split-complementary
#2F38AF #AF662F #78AF2F
monochromatic
#15194F #22297F #2F38AF #4C55CF #7C83DC
Accessibility & contrast
On white
9.11
#2F38AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#2F38AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F38AF
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F38AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F38AF | 1.00 | 9.11 | 2.31 | 9.11 |
| #FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2f38af; /* rgb */ color: rgb(47, 56, 175); /* oklch */ color: oklch(41.8% 0.186 271.9);
Tailwind
colors: {
custom: {
50: '#7b6fc8',
500: '#2f38af',
950: '#000000',
},
}SCSS
$custom: #2f38af; $custom-light: #7b6fc8; $custom-dark: #000000;
JSON
{
"hex": "#2f38af",
"rgb": {
"r": 47,
"g": 56,
"b": 175
},
"hsl": {
"h": 235.781,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.41785,
"c": 0.18578,
"h": 271.9
},
"luminance": 0.06528
}Semantic roles & 50–950 ramp
primary
#2F38AF
secondary
#C4BF75
accent
#D647E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82