#2F40AB#2F40AB
#2F40AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.171 H 270.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40AB |
|---|---|
| RGB | rgb(47, 64, 171) |
| HSL | hsl(232, 57%, 43%) |
| HSV | hsv(232, 73%, 67%) |
| CMYK | cmyk(72.5%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(32.28, 30.69, -59.24) |
| CIE-LCH | lch(32.28, 66.71, 297.39°) |
| OKLab | oklab(42.83% 0.0012 -0.1711) |
| OKLCH | oklch(42.83% 0.171 270.4) |
| XYZ | xyz(10.3539, 7.2103, 39.3663) |
| Luminance | 0.0721 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.41
Blue Blue
#2242C7
ΔE00 3.72
Blueberry
#464196
ΔE00 4.73
Cobalt
#0047AB
ΔE00 4.74
Ocean Blue
#4F42B5
ΔE00 4.81
Blue (survey)
#0343DF
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40AB #AB9A2F
analogous
#2F7EAB #2F40AB #5C2FAB
triadic
#2F40AB #AB2F40 #40AB2F
tetradic
#2F40AB #AB2F7E #AB9A2F #2FAB5C
square
#2F40AB #AB2F7E #AB9A2F #2FAB5C
split-complementary
#2F40AB #AB5C2F #7EAB2F
monochromatic
#151C4B #222E7B #2F40AB #4A5CCD #7A87DA
Accessibility & contrast
On white
8.60
#2F40AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#2F40AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40AB
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40AB | 1.00 | 8.60 | 2.44 | 8.60 |
| #FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2f40ab; /* rgb */ color: rgb(47, 64, 171); /* oklch */ color: oklch(42.8% 0.171 270.4);
Tailwind
colors: {
custom: {
50: '#7974c5',
500: '#2f40ab',
950: '#000000',
},
}SCSS
$custom: #2f40ab; $custom-light: #7974c5; $custom-dark: #000000;
JSON
{
"hex": "#2f40ab",
"rgb": {
"r": 47,
"g": 64,
"b": 171
},
"hsl": {
"h": 231.774,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.4283,
"c": 0.17106,
"h": 270.4
},
"luminance": 0.07211
}Semantic roles & 50–950 ramp
primary
#2F40AB
secondary
#C3B873
accent
#CB48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82