#2B27A6#2B27A6
#2B27A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.193 H 273.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2B27A6 |
|---|---|
| RGB | rgb(43, 39, 166) |
| HSL | hsl(242, 62%, 40%) |
| HSV | hsv(242, 77%, 65%) |
| CMYK | cmyk(74.1%, 76.5%, 0%, 34.9%) |
| CIE-LAB | lab(25.91, 43.83, -66.70) |
| CIE-LCH | lch(25.91, 79.82, 303.31°) |
| OKLab | oklab(38.02% 0.012 -0.193) |
| OKLCH | oklch(38.02% 0.193 273.6) |
| XYZ | xyz(8.6024, 4.7169, 36.5261) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.57
Royal
#0C1793
ΔE00 4.78
Sapphire (survey)
#2138AB
ΔE00 4.86
Cobalt Blue
#030AA7
ΔE00 5.18
Ultramarine
#2000B1
ΔE00 5.47
True Blue
#010FCC
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B27A6 #A2A627
analogous
#2762A6 #2B27A6 #6B27A6
triadic
#2B27A6 #A62B27 #27A62B
tetradic
#2B27A6 #A62762 #A2A627 #27A66B
square
#2B27A6 #A62762 #A2A627 #27A66B
split-complementary
#2B27A6 #A66B27 #62A627
monochromatic
#111043 #1E1B74 #2B27A6 #3E3AD1 #6F6BDC
Accessibility & contrast
On white
10.80
#2B27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2B27A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B27A6
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B27A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B27A6 | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2b27a6; /* rgb */ color: rgb(43, 39, 166); /* oklch */ color: oklch(38.0% 0.193 273.6);
Tailwind
colors: {
custom: {
50: '#7963c2',
500: '#2b27a6',
950: '#000000',
},
}SCSS
$custom: #2b27a6; $custom-light: #7963c2; $custom-dark: #000000;
JSON
{
"hex": "#2b27a6",
"rgb": {
"r": 43,
"g": 39,
"b": 166
},
"hsl": {
"h": 241.89,
"s": 61.951,
"l": 40.196
},
"oklch": {
"l": 0.38018,
"c": 0.19336,
"h": 273.6
},
"luminance": 0.04718
}Semantic roles & 50–950 ramp
primary
#2B27A6
secondary
#C0C366
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82