#2D179F#2D179F
#2D179F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.198 H 276.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2D179F |
|---|---|
| RGB | rgb(45, 23, 159) |
| HSL | hsl(250, 75%, 36%) |
| HSV | hsv(250, 86%, 62%) |
| CMYK | cmyk(71.7%, 85.5%, 0%, 37.6%) |
| CIE-LAB | lab(22.56, 49.62, -68.00) |
| CIE-LCH | lch(22.56, 84.18, 306.12°) |
| OKLab | oklab(35.49% 0.0229 -0.1965) |
| OKLCH | oklch(35.49% 0.198 276.7) |
| XYZ | xyz(7.6446, 3.6732, 33.1003) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.81
Indigo Blue
#3A18B1
ΔE00 2.91
Royal
#0C1793
ΔE00 3.10
Ultramarine
#2000B1
ΔE00 3.13
Royal Blue (survey)
#0504AA
ΔE00 3.13
Indigo (survey)
#380282
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D179F #899F17
analogous
#17459F #2D179F #71179F
triadic
#2D179F #9F2D17 #179F2D
tetradic
#2D179F #9F1745 #899F17 #179F71
square
#2D179F #9F1745 #899F17 #179F71
split-complementary
#2D179F #9F7117 #459F17
monochromatic
#0F0834 #1E0F6A #2D179F #3C1FD4 #644BE5
Accessibility & contrast
On white
12.11
#2D179F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2D179F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D179F
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D179F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D179F | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2d179f; /* rgb */ color: rgb(45, 23, 159); /* oklch */ color: oklch(35.5% 0.198 276.7);
Tailwind
colors: {
custom: {
50: '#795abd',
500: '#2d179f',
950: '#000000',
},
}SCSS
$custom: #2d179f; $custom-light: #795abd; $custom-dark: #000000;
JSON
{
"hex": "#2d179f",
"rgb": {
"r": 45,
"g": 23,
"b": 159
},
"hsl": {
"h": 249.706,
"s": 74.725,
"l": 35.686
},
"oklch": {
"l": 0.35488,
"c": 0.19779,
"h": 276.7
},
"luminance": 0.03674
}Semantic roles & 50–950 ramp
primary
#2D179F
secondary
#B3C74B
accent
#F136D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981