#2F27A8#2F27A8
#2F27A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.195 H 274.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2F27A8 |
|---|---|
| RGB | rgb(47, 39, 168) |
| HSL | hsl(244, 62%, 41%) |
| HSV | hsv(244, 77%, 66%) |
| CMYK | cmyk(72%, 76.8%, 0%, 34.1%) |
| CIE-LAB | lab(26.39, 44.85, -67.11) |
| CIE-LCH | lch(26.39, 80.71, 303.76°) |
| OKLab | oklab(38.49% 0.0167 -0.1941) |
| OKLCH | oklch(38.49% 0.195 274.9) |
| XYZ | xyz(8.9634, 4.8817, 37.5081) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.21
Sapphire (survey)
#2138AB
ΔE00 4.98
Royal
#0C1793
ΔE00 5.13
Cobalt Blue
#030AA7
ΔE00 5.30
True Blue
#010FCC
ΔE00 5.33
Ultramarine
#2000B1
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F27A8 #A0A827
analogous
#275FA8 #2F27A8 #6F27A8
triadic
#2F27A8 #A82F27 #27A82F
tetradic
#2F27A8 #A8275F #A0A827 #27A86F
square
#2F27A8 #A8275F #A0A827 #27A86F
split-complementary
#2F27A8 #A86F27 #5FA827
monochromatic
#131045 #211B76 #2F27A8 #443BD1 #736CDD
Accessibility & contrast
On white
10.62
#2F27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2F27A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F27A8
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F27A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F27A8 | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f27a8; /* rgb */ color: rgb(47, 39, 168); /* oklch */ color: oklch(38.5% 0.195 274.9);
Tailwind
colors: {
custom: {
50: '#7b64c3',
500: '#2f27a8',
950: '#000000',
},
}SCSS
$custom: #2f27a8; $custom-light: #7b64c3; $custom-dark: #000000;
JSON
{
"hex": "#2f27a8",
"rgb": {
"r": 47,
"g": 39,
"b": 168
},
"hsl": {
"h": 243.721,
"s": 62.319,
"l": 40.588
},
"oklch": {
"l": 0.38492,
"c": 0.19477,
"h": 274.9
},
"luminance": 0.04883
}Semantic roles & 50–950 ramp
primary
#2F27A8
secondary
#BEC367
accent
#E542DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82