#2C18A1#2C18A1
#2C18A1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.200 H 275.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2C18A1 |
|---|---|
| RGB | rgb(44, 24, 161) |
| HSL | hsl(249, 74%, 36%) |
| HSV | hsv(249, 85%, 63%) |
| CMYK | cmyk(72.7%, 85.1%, 0%, 36.9%) |
| CIE-LAB | lab(22.87, 49.72, -68.71) |
| CIE-LCH | lch(22.87, 84.81, 305.89°) |
| OKLab | oklab(35.75% 0.0205 -0.1986) |
| OKLCH | oklch(35.75% 0.2 275.9) |
| XYZ | xyz(7.7963, 3.7612, 34.0264) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.71
Cobalt Blue
#030AA7
ΔE00 2.79
Ultramarine
#2000B1
ΔE00 3.06
Royal Blue (survey)
#0504AA
ΔE00 3.12
Royal
#0C1793
ΔE00 3.19
True Blue
#010FCC
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C18A1 #8DA118
analogous
#1849A1 #2C18A1 #7118A1
triadic
#2C18A1 #A12C18 #18A12C
tetradic
#2C18A1 #A11849 #8DA118 #18A171
square
#2C18A1 #A11849 #8DA118 #18A171
split-complementary
#2C18A1 #A17118 #49A118
monochromatic
#0F0836 #1D106C #2C18A1 #3B20D6 #654FE5
Accessibility & contrast
On white
11.98
#2C18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2C18A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C18A1
11.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C18A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C18A1 | 1.00 | 11.98 | 1.75 | 11.98 |
| #FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2c18a1; /* rgb */ color: rgb(44, 24, 161); /* oklch */ color: oklch(35.7% 0.200 275.9);
Tailwind
colors: {
custom: {
50: '#795bbe',
500: '#2c18a1',
950: '#000000',
},
}SCSS
$custom: #2c18a1; $custom-light: #795bbe; $custom-dark: #000000;
JSON
{
"hex": "#2c18a1",
"rgb": {
"r": 44,
"g": 24,
"b": 161
},
"hsl": {
"h": 248.759,
"s": 74.054,
"l": 36.275
},
"oklch": {
"l": 0.35747,
"c": 0.19962,
"h": 275.9
},
"luminance": 0.03762
}Semantic roles & 50–950 ramp
primary
#2C18A1
secondary
#B5C74E
accent
#F137D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981