#2A2FB1#2A2FB1
#2A2FB1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.199 H 271.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2FB1 |
|---|---|
| RGB | rgb(42, 47, 177) |
| HSL | hsl(238, 62%, 43%) |
| HSV | hsv(238, 76%, 69%) |
| CMYK | cmyk(76.3%, 73.4%, 0%, 30.6%) |
| CIE-LAB | lab(28.64, 42.88, -68.81) |
| CIE-LCH | lch(28.64, 81.08, 301.93°) |
| OKLab | oklab(40.28% 0.0053 -0.1992) |
| OKLCH | oklch(40.28% 0.199 271.5) |
| XYZ | xyz(9.9045, 5.6985, 42.1644) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.07
Indigo Blue
#3A18B1
ΔE00 4.92
True Blue
#010FCC
ΔE00 5.90
Blue Blue
#2242C7
ΔE00 5.92
Ocean Blue
#4F42B5
ΔE00 6.24
Blue With A Hint Of Purple
#533CC6
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2FB1 #B1AC2A
analogous
#2A72B1 #2A2FB1 #692AB1
triadic
#2A2FB1 #B12A2F #2FB12A
tetradic
#2A2FB1 #B12A72 #B1AC2A #2AB169
square
#2A2FB1 #B12A72 #B1AC2A #2AB169
split-complementary
#2A2FB1 #B1692A #72B12A
monochromatic
#13154E #1E2280 #2A2FB1 #454BD3 #777BDF
Accessibility & contrast
On white
9.81
#2A2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#2A2FB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2FB1
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2FB1 | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2a2fb1; /* rgb */ color: rgb(42, 47, 177); /* oklch */ color: oklch(40.3% 0.199 271.5);
Tailwind
colors: {
custom: {
50: '#7a69ca',
500: '#2a2fb1',
950: '#000000',
},
}SCSS
$custom: #2a2fb1; $custom-light: #7a69ca; $custom-dark: #000000;
JSON
{
"hex": "#2a2fb1",
"rgb": {
"r": 42,
"g": 47,
"b": 177
},
"hsl": {
"h": 237.778,
"s": 61.644,
"l": 42.941
},
"oklch": {
"l": 0.40283,
"c": 0.19928,
"h": 271.5
},
"luminance": 0.057
}Semantic roles & 50–950 ramp
primary
#2A2FB1
secondary
#C6C370
accent
#DF43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82