#2F28A5#2F28A5
#2F28A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.190 H 275.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2F28A5 |
|---|---|
| RGB | rgb(47, 40, 165) |
| HSL | hsl(243, 61%, 40%) |
| HSV | hsv(243, 76%, 65%) |
| CMYK | cmyk(71.5%, 75.8%, 0%, 35.3%) |
| CIE-LAB | lab(26.27, 43.33, -65.50) |
| CIE-LCH | lch(26.27, 78.54, 303.48°) |
| OKLab | oklab(38.31% 0.0168 -0.1894) |
| OKLCH | oklch(38.31% 0.19 275.1) |
| XYZ | xyz(8.7204, 4.8377, 36.0642) |
| Luminance | 0.0484 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.60
Sapphire (survey)
#2138AB
ΔE00 4.80
Royal
#0C1793
ΔE00 5.03
Cobalt Blue
#030AA7
ΔE00 5.49
Ultramarine
#2000B1
ΔE00 5.71
True Blue
#010FCC
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F28A5 #9EA528
analogous
#285FA5 #2F28A5 #6D28A5
triadic
#2F28A5 #A52F28 #28A52F
tetradic
#2F28A5 #A5285F #9EA528 #28A56D
square
#2F28A5 #A5285F #9EA528 #28A56D
split-complementary
#2F28A5 #A56D28 #5FA528
monochromatic
#131042 #211C74 #2F28A5 #433BCF #726CDB
Accessibility & contrast
On white
10.67
#2F28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#2F28A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F28A5
10.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F28A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F28A5 | 1.00 | 10.67 | 1.97 | 10.67 |
| #FFFFFF | 10.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f28a5; /* rgb */ color: rgb(47, 40, 165); /* oklch */ color: oklch(38.3% 0.190 275.1);
Tailwind
colors: {
custom: {
50: '#7a64c1',
500: '#2f28a5',
950: '#000000',
},
}SCSS
$custom: #2f28a5; $custom-light: #7a64c1; $custom-dark: #000000;
JSON
{
"hex": "#2f28a5",
"rgb": {
"r": 47,
"g": 40,
"b": 165
},
"hsl": {
"h": 243.36,
"s": 60.976,
"l": 40.196
},
"oklch": {
"l": 0.38306,
"c": 0.19016,
"h": 275.1
},
"luminance": 0.04839
}Semantic roles & 50–950 ramp
primary
#2F28A5
secondary
#BDC267
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81