#2F28A6#2F28A6
#2F28A6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.191 H 275.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2F28A6 |
|---|---|
| RGB | rgb(47, 40, 166) |
| HSL | hsl(243, 61%, 40%) |
| HSV | hsv(243, 76%, 65%) |
| CMYK | cmyk(71.7%, 75.9%, 0%, 34.9%) |
| CIE-LAB | lab(26.37, 43.65, -65.93) |
| CIE-LCH | lch(26.37, 79.07, 303.51°) |
| OKLab | oklab(38.41% 0.0166 -0.1907) |
| OKLCH | oklch(38.41% 0.191 275) |
| XYZ | xyz(8.8117, 4.8742, 36.5454) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.53
Sapphire (survey)
#2138AB
ΔE00 4.79
Royal
#0C1793
ΔE00 5.11
Cobalt Blue
#030AA7
ΔE00 5.49
True Blue
#010FCC
ΔE00 5.67
Ultramarine
#2000B1
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F28A6 #9FA628
analogous
#2860A6 #2F28A6 #6E28A6
triadic
#2F28A6 #A62F28 #28A62F
tetradic
#2F28A6 #A62860 #9FA628 #28A66E
square
#2F28A6 #A62860 #9FA628 #28A66E
split-complementary
#2F28A6 #A66E28 #60A628
monochromatic
#131043 #211C75 #2F28A6 #443BD0 #736DDC
Accessibility & contrast
On white
10.63
#2F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2F28A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F28A6
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F28A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F28A6 | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f28a6; /* rgb */ color: rgb(47, 40, 166); /* oklch */ color: oklch(38.4% 0.191 275.0);
Tailwind
colors: {
custom: {
50: '#7a64c2',
500: '#2f28a6',
950: '#000000',
},
}SCSS
$custom: #2f28a6; $custom-light: #7a64c2; $custom-dark: #000000;
JSON
{
"hex": "#2f28a6",
"rgb": {
"r": 47,
"g": 40,
"b": 166
},
"hsl": {
"h": 243.333,
"s": 61.165,
"l": 40.392
},
"oklch": {
"l": 0.38413,
"c": 0.19138,
"h": 275
},
"luminance": 0.04875
}Semantic roles & 50–950 ramp
primary
#2F28A6
secondary
#BDC267
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82