#2C18A0#2C18A0
#2C18A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.198 H 276.0°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2C18A0 |
|---|---|
| RGB | rgb(44, 24, 160) |
| HSL | hsl(249, 74%, 36%) |
| HSV | hsv(249, 85%, 63%) |
| CMYK | cmyk(72.5%, 85%, 0%, 37.3%) |
| CIE-LAB | lab(22.74, 49.43, -68.30) |
| CIE-LCH | lch(22.74, 84.31, 305.89°) |
| OKLab | oklab(35.63% 0.0208 -0.1974) |
| OKLCH | oklch(35.63% 0.198 276) |
| XYZ | xyz(7.7084, 3.7261, 33.5639) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.81
Indigo Blue
#3A18B1
ΔE00 2.83
Royal
#0C1793
ΔE00 3.10
Ultramarine
#2000B1
ΔE00 3.14
Royal Blue (survey)
#0504AA
ΔE00 3.15
True Blue
#010FCC
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C18A0 #8CA018
analogous
#1848A0 #2C18A0 #7018A0
triadic
#2C18A0 #A02C18 #18A02C
tetradic
#2C18A0 #A01848 #8CA018 #18A070
square
#2C18A0 #A01848 #8CA018 #18A070
split-complementary
#2C18A0 #A07018 #48A018
monochromatic
#0F0836 #1D106B #2C18A0 #3B20D5 #644EE4
Accessibility & contrast
On white
12.03
#2C18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2C18A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C18A0
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C18A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C18A0 | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2c18a0; /* rgb */ color: rgb(44, 24, 160); /* oklch */ color: oklch(35.6% 0.198 276.0);
Tailwind
colors: {
custom: {
50: '#795bbe',
500: '#2c18a0',
950: '#000000',
},
}SCSS
$custom: #2c18a0; $custom-light: #795bbe; $custom-dark: #000000;
JSON
{
"hex": "#2c18a0",
"rgb": {
"r": 44,
"g": 24,
"b": 160
},
"hsl": {
"h": 248.824,
"s": 73.913,
"l": 36.078
},
"oklch": {
"l": 0.35629,
"c": 0.19848,
"h": 276
},
"luminance": 0.03727
}Semantic roles & 50–950 ramp
primary
#2C18A0
secondary
#B5C64D
accent
#F137D5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981