#2A18B3#2A18B3
#2A18B3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.8% C 0.220 H 273.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2A18B3 |
|---|---|
| RGB | rgb(42, 24, 179) |
| HSL | hsl(247, 76%, 40%) |
| HSV | hsv(247, 87%, 70%) |
| CMYK | cmyk(76.5%, 86.6%, 0%, 29.8%) |
| CIE-LAB | lab(24.95, 54.84, -76.12) |
| CIE-LCH | lch(24.95, 93.82, 305.77°) |
| OKLab | oklab(37.77% 0.0123 -0.2201) |
| OKLCH | oklch(37.77% 0.22 273.2) |
| XYZ | xyz(9.4155, 4.3992, 42.9920) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.47
Ultramarine
#2000B1
ΔE00 2.69
True Blue
#010FCC
ΔE00 3.01
Mediumblue
#0000CD
ΔE00 3.40
Cobalt Blue
#030AA7
ΔE00 3.43
Royal Blue (survey)
#0504AA
ΔE00 3.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A18B3 #A1B318
analogous
#1853B3 #2A18B3 #7818B3
triadic
#2A18B3 #B32A18 #18B32A
tetradic
#2A18B3 #B31853 #A1B318 #18B378
square
#2A18B3 #B31853 #A1B318 #18B378
split-complementary
#2A18B3 #B37818 #53B318
monochromatic
#110A47 #1D117D #2A18B3 #3C26E2 #6D5CE9
Accessibility & contrast
On white
11.17
#2A18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#2A18B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A18B3
11.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A18B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A18B3 | 1.00 | 11.17 | 1.88 | 11.17 |
| #FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0034B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a18b3; /* rgb */ color: rgb(42, 24, 179); /* oklch */ color: oklch(37.8% 0.220 273.2);
Tailwind
colors: {
custom: {
50: '#7d5ccb',
500: '#2a18b3',
950: '#000000',
},
}SCSS
$custom: #2a18b3; $custom-light: #7d5ccb; $custom-dark: #000000;
JSON
{
"hex": "#2a18b3",
"rgb": {
"r": 42,
"g": 24,
"b": 179
},
"hsl": {
"h": 246.968,
"s": 76.355,
"l": 39.804
},
"oklch": {
"l": 0.37772,
"c": 0.22042,
"h": 273.2
},
"luminance": 0.044
}Semantic roles & 50–950 ramp
primary
#2A18B3
secondary
#C0CD5A
accent
#F335DD
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982