#2C17A0#2C17A0
#2C17A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.199 H 276.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2C17A0 |
|---|---|
| RGB | rgb(44, 23, 160) |
| HSL | hsl(249, 75%, 36%) |
| HSV | hsv(249, 86%, 63%) |
| CMYK | cmyk(72.5%, 85.6%, 0%, 37.3%) |
| CIE-LAB | lab(22.60, 49.84, -68.54) |
| CIE-LCH | lch(22.60, 84.74, 306.03°) |
| OKLab | oklab(35.53% 0.0211 -0.198) |
| OKLCH | oklch(35.53% 0.199 276.1) |
| XYZ | xyz(7.6882, 3.6856, 33.5571) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.71
Indigo Blue
#3A18B1
ΔE00 2.85
Ultramarine
#2000B1
ΔE00 3.03
Royal Blue (survey)
#0504AA
ΔE00 3.04
Royal
#0C1793
ΔE00 3.10
True Blue
#010FCC
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C17A0 #8BA017
analogous
#1746A0 #2C17A0 #7017A0
triadic
#2C17A0 #A02C17 #17A02C
tetradic
#2C17A0 #A01746 #8BA017 #17A070
square
#2C17A0 #A01746 #8BA017 #17A070
split-complementary
#2C17A0 #A07017 #46A017
monochromatic
#0F0835 #1D0F6A #2C17A0 #3B1FD6 #644CE5
Accessibility & contrast
On white
12.09
#2C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2C17A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C17A0
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C17A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C17A0 | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2c17a0; /* rgb */ color: rgb(44, 23, 160); /* oklch */ color: oklch(35.5% 0.199 276.1);
Tailwind
colors: {
custom: {
50: '#795abe',
500: '#2c17a0',
950: '#000000',
},
}SCSS
$custom: #2c17a0; $custom-light: #795abe; $custom-dark: #000000;
JSON
{
"hex": "#2c17a0",
"rgb": {
"r": 44,
"g": 23,
"b": 160
},
"hsl": {
"h": 249.197,
"s": 74.863,
"l": 35.882
},
"oklch": {
"l": 0.35532,
"c": 0.19917,
"h": 276.1
},
"luminance": 0.03686
}Semantic roles & 50–950 ramp
primary
#2C17A0
secondary
#B4C74C
accent
#F136D5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981