#2A1F95#2A1F95
#2A1F95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.180 H 275.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F95 |
|---|---|
| RGB | rgb(42, 31, 149) |
| HSL | hsl(246, 66%, 35%) |
| HSV | hsv(246, 79%, 58%) |
| CMYK | cmyk(71.8%, 79.2%, 0%, 41.6%) |
| CIE-LAB | lab(22.45, 42.53, -62.05) |
| CIE-LCH | lch(22.45, 75.22, 304.43°) |
| OKLab | oklab(35.01% 0.0183 -0.1794) |
| OKLCH | oklch(35.01% 0.18 275.8) |
| XYZ | xyz(6.8679, 3.6415, 28.7689) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.59
Cobalt Blue
#030AA7
ΔE00 4.21
Indigo Blue
#3A18B1
ΔE00 4.46
Royal Blue (survey)
#0504AA
ΔE00 4.73
Ultramarine
#2000B1
ΔE00 5.10
Indigo (survey)
#380282
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F95 #8A951F
analogous
#1F4F95 #2A1F95 #651F95
triadic
#2A1F95 #952A1F #1F952A
tetradic
#2A1F95 #951F4F #8A951F #1F9565
square
#2A1F95 #951F4F #8A951F #1F9565
split-complementary
#2A1F95 #95651F #4F951F
monochromatic
#0D0A30 #1C1462 #2A1F95 #382AC8 #6053DB
Accessibility & contrast
On white
12.15
#2A1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2A1F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F95
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F95 | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a1f95; /* rgb */ color: rgb(42, 31, 149); /* oklch */ color: oklch(35.0% 0.180 275.8);
Tailwind
colors: {
custom: {
50: '#755eb5',
500: '#2a1f95',
950: '#000000',
},
}SCSS
$custom: #2a1f95; $custom-light: #755eb5; $custom-dark: #000000;
JSON
{
"hex": "#2a1f95",
"rgb": {
"r": 42,
"g": 31,
"b": 149
},
"hsl": {
"h": 245.593,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.3501,
"c": 0.18031,
"h": 275.8
},
"luminance": 0.03642
}Semantic roles & 50–950 ramp
primary
#2A1F95
secondary
#B4BF51
accent
#E93FD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980