#2F28A4#2F28A4
#2F28A4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.189 H 275.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2F28A4 |
|---|---|
| RGB | rgb(47, 40, 164) |
| HSL | hsl(243, 61%, 40%) |
| HSV | hsv(243, 76%, 64%) |
| CMYK | cmyk(71.3%, 75.6%, 0%, 35.7%) |
| CIE-LAB | lab(26.16, 43.00, -65.07) |
| CIE-LCH | lch(26.16, 78.00, 303.45°) |
| OKLab | oklab(38.2% 0.017 -0.1882) |
| OKLCH | oklch(38.2% 0.189 275.2) |
| XYZ | xyz(8.6297, 4.8014, 35.5867) |
| Luminance | 0.0480 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.68
Sapphire (survey)
#2138AB
ΔE00 4.82
Royal
#0C1793
ΔE00 4.96
Cobalt Blue
#030AA7
ΔE00 5.49
Ultramarine
#2000B1
ΔE00 5.75
True Blue
#010FCC
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F28A4 #9DA428
analogous
#285FA4 #2F28A4 #6D28A4
triadic
#2F28A4 #A42F28 #28A42F
tetradic
#2F28A4 #A4285F #9DA428 #28A46D
square
#2F28A4 #A4285F #9DA428 #28A46D
split-complementary
#2F28A4 #A46D28 #5FA428
monochromatic
#131042 #211C73 #2F28A4 #433ACF #726BDB
Accessibility & contrast
On white
10.71
#2F28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#2F28A4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F28A4
10.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F28A4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F28A4 | 1.00 | 10.71 | 1.96 | 10.71 |
| #FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f28a4; /* rgb */ color: rgb(47, 40, 164); /* oklch */ color: oklch(38.2% 0.189 275.2);
Tailwind
colors: {
custom: {
50: '#7a64c0',
500: '#2f28a4',
950: '#000000',
},
}SCSS
$custom: #2f28a4; $custom-light: #7a64c0; $custom-dark: #000000;
JSON
{
"hex": "#2f28a4",
"rgb": {
"r": 47,
"g": 40,
"b": 164
},
"hsl": {
"h": 243.387,
"s": 60.784,
"l": 40
},
"oklch": {
"l": 0.382,
"c": 0.18892,
"h": 275.2
},
"luminance": 0.04802
}Semantic roles & 50–950 ramp
primary
#2F28A4
secondary
#BCC166
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81