#2F41A5#2F41A5
#2F41A5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.162 H 270.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F41A5 |
|---|---|
| RGB | rgb(47, 65, 165) |
| HSL | hsl(231, 56%, 42%) |
| HSV | hsv(231, 72%, 65%) |
| CMYK | cmyk(71.5%, 60.6%, 0%, 35.3%) |
| CIE-LAB | lab(32.03, 27.82, -56.04) |
| CIE-LCH | lch(32.03, 62.57, 296.40°) |
| OKLab | oklab(42.49% 0.0005 -0.1617) |
| OKLCH | oklch(42.49% 0.162 270.2) |
| XYZ | xyz(9.8518, 7.1006, 36.4414) |
| Luminance | 0.0710 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.91
Blueberry
#464196
ΔE00 4.36
Cobalt
#0047AB
ΔE00 4.36
Blue Blue
#2242C7
ΔE00 4.54
Ocean Blue
#4F42B5
ΔE00 5.40
Cobalt (survey)
#1E488F
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F41A5 #A5932F
analogous
#2F7CA5 #2F41A5 #582FA5
triadic
#2F41A5 #A52F41 #41A52F
tetradic
#2F41A5 #A52F7C #A5932F #2FA558
square
#2F41A5 #A52F7C #A5932F #2FA558
split-complementary
#2F41A5 #A5582F #7CA52F
monochromatic
#141B46 #212E75 #2F41A5 #475BCB #7685D8
Accessibility & contrast
On white
8.68
#2F41A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2F41A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F41A5
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F41A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F41A5 | 1.00 | 8.68 | 2.42 | 8.68 |
| #FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2f41a5; /* rgb */ color: rgb(47, 65, 165); /* oklch */ color: oklch(42.5% 0.162 270.2);
Tailwind
colors: {
custom: {
50: '#7875c1',
500: '#2f41a5',
950: '#000000',
},
}SCSS
$custom: #2f41a5; $custom-light: #7875c1; $custom-dark: #000000;
JSON
{
"hex": "#2f41a5",
"rgb": {
"r": 47,
"g": 65,
"b": 165
},
"hsl": {
"h": 230.847,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.42491,
"c": 0.16168,
"h": 270.2
},
"luminance": 0.07102
}Semantic roles & 50–950 ramp
primary
#2F41A5
secondary
#C0B470
accent
#C849DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81