#2A27A8#2A27A8
#2A27A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.196 H 273.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2A27A8 |
|---|---|
| RGB | rgb(42, 39, 168) |
| HSL | hsl(241, 62%, 41%) |
| HSV | hsv(241, 77%, 66%) |
| CMYK | cmyk(75%, 76.8%, 0%, 34.1%) |
| CIE-LAB | lab(26.07, 44.41, -67.66) |
| CIE-LCH | lch(26.07, 80.93, 303.28°) |
| OKLab | oklab(38.17% 0.0104 -0.1958) |
| OKLCH | oklch(38.17% 0.196 273) |
| XYZ | xyz(8.7459, 4.7695, 37.4979) |
| Luminance | 0.0477 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.49
Sapphire (survey)
#2138AB
ΔE00 4.80
Royal
#0C1793
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 5.17
True Blue
#010FCC
ΔE00 5.30
Ultramarine
#2000B1
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A27A8 #A5A827
analogous
#2765A8 #2A27A8 #6A27A8
triadic
#2A27A8 #A82A27 #27A82A
tetradic
#2A27A8 #A82765 #A5A827 #27A86A
square
#2A27A8 #A82765 #A5A827 #27A86A
split-complementary
#2A27A8 #A86A27 #65A827
monochromatic
#111045 #1E1B76 #2A27A8 #3E3BD1 #6F6CDD
Accessibility & contrast
On white
10.75
#2A27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2A27A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A27A8
10.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A27A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A27A8 | 1.00 | 10.75 | 1.95 | 10.75 |
| #FFFFFF | 10.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a27a8; /* rgb */ color: rgb(42, 39, 168); /* oklch */ color: oklch(38.2% 0.196 273.0);
Tailwind
colors: {
custom: {
50: '#7963c3',
500: '#2a27a8',
950: '#000000',
},
}SCSS
$custom: #2a27a8; $custom-light: #7963c3; $custom-dark: #000000;
JSON
{
"hex": "#2a27a8",
"rgb": {
"r": 42,
"g": 39,
"b": 168
},
"hsl": {
"h": 241.395,
"s": 62.319,
"l": 40.588
},
"oklch": {
"l": 0.38175,
"c": 0.19605,
"h": 273
},
"luminance": 0.0477
}Semantic roles & 50–950 ramp
primary
#2A27A8
secondary
#C1C367
accent
#E542E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82