#2A1F90#2A1F90
#2A1F90 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.174 H 276.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F90 |
|---|---|
| RGB | rgb(42, 31, 144) |
| HSL | hsl(246, 65%, 34%) |
| HSV | hsv(246, 78%, 56%) |
| CMYK | cmyk(70.8%, 78.5%, 0%, 43.5%) |
| CIE-LAB | lab(21.89, 40.91, -59.87) |
| CIE-LCH | lch(21.89, 72.51, 304.34°) |
| OKLab | oklab(34.46% 0.0196 -0.173) |
| OKLCH | oklch(34.46% 0.174 276.4) |
| XYZ | xyz(6.4772, 3.4852, 26.7115) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Cobalt Blue
#030AA7
ΔE00 4.65
Indigo Blue
#3A18B1
ΔE00 5.12
Royal Blue (survey)
#0504AA
ΔE00 5.18
Midnight Blue
#191970
ΔE00 5.30
Indigo (survey)
#380282
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F90 #85901F
analogous
#1F4D90 #2A1F90 #631F90
triadic
#2A1F90 #902A1F #1F902A
tetradic
#2A1F90 #901F4D #85901F #1F9063
square
#2A1F90 #901F4D #85901F #1F9063
split-complementary
#2A1F90 #90631F #4D901F
monochromatic
#0D092B #1B145E #2A1F90 #392AC2 #5D50D9
Accessibility & contrast
On white
12.37
#2A1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2A1F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F90
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F90 | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2a1f90; /* rgb */ color: rgb(42, 31, 144); /* oklch */ color: oklch(34.5% 0.174 276.4);
Tailwind
colors: {
custom: {
50: '#745db2',
500: '#2a1f90',
950: '#000000',
},
}SCSS
$custom: #2a1f90; $custom-light: #745db2; $custom-dark: #000000;
JSON
{
"hex": "#2a1f90",
"rgb": {
"r": 42,
"g": 31,
"b": 144
},
"hsl": {
"h": 245.841,
"s": 64.571,
"l": 34.314
},
"oklch": {
"l": 0.34455,
"c": 0.17415,
"h": 276.4
},
"luminance": 0.03486
}Semantic roles & 50–950 ramp
primary
#2A1F90
secondary
#B2BC4E
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980