#2F27A2#2F27A2
#2F27A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.187 H 275.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F27A2 |
|---|---|
| RGB | rgb(47, 39, 162) |
| HSL | hsl(244, 61%, 39%) |
| HSV | hsv(244, 76%, 64%) |
| CMYK | cmyk(71%, 75.9%, 0%, 36.5%) |
| CIE-LAB | lab(25.75, 42.90, -64.53) |
| CIE-LCH | lch(25.75, 77.49, 303.61°) |
| OKLab | oklab(37.85% 0.018 -0.1866) |
| OKLCH | oklch(37.85% 0.187 275.5) |
| XYZ | xyz(8.4172, 4.6632, 34.6319) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.65
Royal
#0C1793
ΔE00 4.67
Sapphire (survey)
#2138AB
ΔE00 5.10
Cobalt Blue
#030AA7
ΔE00 5.30
Ultramarine
#2000B1
ΔE00 5.62
Royal Blue (survey)
#0504AA
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F27A2 #9AA227
analogous
#275DA2 #2F27A2 #6C27A2
triadic
#2F27A2 #A22F27 #27A22F
tetradic
#2F27A2 #A2275D #9AA227 #27A26C
square
#2F27A2 #A2275D #9AA227 #27A26C
split-complementary
#2F27A2 #A26C27 #5DA227
monochromatic
#120F3F #211B71 #2F27A2 #4137CF #7069DB
Accessibility & contrast
On white
10.87
#2F27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2F27A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F27A2
10.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F27A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F27A2 | 1.00 | 10.87 | 1.93 | 10.87 |
| #FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f27a2; /* rgb */ color: rgb(47, 39, 162); /* oklch */ color: oklch(37.8% 0.187 275.5);
Tailwind
colors: {
custom: {
50: '#7963bf',
500: '#2f27a2',
950: '#000000',
},
}SCSS
$custom: #2f27a2; $custom-light: #7963bf; $custom-dark: #000000;
JSON
{
"hex": "#2f27a2",
"rgb": {
"r": 47,
"g": 39,
"b": 162
},
"hsl": {
"h": 243.902,
"s": 61.194,
"l": 39.412
},
"oklch": {
"l": 0.37848,
"c": 0.18744,
"h": 275.5
},
"luminance": 0.04664
}Semantic roles & 50–950 ramp
primary
#2F27A2
secondary
#BBC164
accent
#E443DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81