#2C27A6#2C27A6
#2C27A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.193 H 273.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2C27A6 |
|---|---|
| RGB | rgb(44, 39, 166) |
| HSL | hsl(242, 62%, 40%) |
| HSV | hsv(242, 77%, 65%) |
| CMYK | cmyk(73.5%, 76.5%, 0%, 34.9%) |
| CIE-LAB | lab(25.98, 43.92, -66.59) |
| CIE-LCH | lch(25.98, 79.78, 303.41°) |
| OKLab | oklab(38.08% 0.0133 -0.1926) |
| OKLCH | oklch(38.08% 0.193 273.9) |
| XYZ | xyz(8.6449, 4.7388, 36.5281) |
| Luminance | 0.0474 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.51
Royal
#0C1793
ΔE00 4.82
Sapphire (survey)
#2138AB
ΔE00 4.89
Cobalt Blue
#030AA7
ΔE00 5.20
Ultramarine
#2000B1
ΔE00 5.46
True Blue
#010FCC
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C27A6 #A1A627
analogous
#2762A6 #2C27A6 #6B27A6
triadic
#2C27A6 #A62C27 #27A62C
tetradic
#2C27A6 #A62762 #A1A627 #27A66B
square
#2C27A6 #A62762 #A1A627 #27A66B
split-complementary
#2C27A6 #A66B27 #62A627
monochromatic
#121043 #1F1B74 #2C27A6 #403AD1 #706BDC
Accessibility & contrast
On white
10.78
#2C27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2C27A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C27A6
10.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C27A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C27A6 | 1.00 | 10.78 | 1.95 | 10.78 |
| #FFFFFF | 10.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2c27a6; /* rgb */ color: rgb(44, 39, 166); /* oklch */ color: oklch(38.1% 0.193 273.9);
Tailwind
colors: {
custom: {
50: '#7963c2',
500: '#2c27a6',
950: '#000000',
},
}SCSS
$custom: #2c27a6; $custom-light: #7963c2; $custom-dark: #000000;
JSON
{
"hex": "#2c27a6",
"rgb": {
"r": 44,
"g": 39,
"b": 166
},
"hsl": {
"h": 242.362,
"s": 61.951,
"l": 40.196
},
"oklch": {
"l": 0.38081,
"c": 0.19311,
"h": 273.9
},
"luminance": 0.0474
}Semantic roles & 50–950 ramp
primary
#2C27A6
secondary
#BFC366
accent
#E543DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82