#2B179F#2B179F
#2B179F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.3% C 0.198 H 275.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2B179F |
|---|---|
| RGB | rgb(43, 23, 159) |
| HSL | hsl(249, 75%, 36%) |
| HSV | hsv(249, 86%, 62%) |
| CMYK | cmyk(73%, 85.5%, 0%, 37.6%) |
| CIE-LAB | lab(22.40, 49.48, -68.26) |
| CIE-LCH | lch(22.40, 84.31, 305.94°) |
| OKLab | oklab(35.34% 0.02 -0.1973) |
| OKLCH | oklch(35.34% 0.198 275.8) |
| XYZ | xyz(7.5586, 3.6289, 33.0963) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.67
Royal
#0C1793
ΔE00 2.93
Indigo Blue
#3A18B1
ΔE00 3.02
Royal Blue (survey)
#0504AA
ΔE00 3.02
Ultramarine
#2000B1
ΔE00 3.10
Darkblue
#00008B
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B179F #8B9F17
analogous
#17479F #2B179F #6F179F
triadic
#2B179F #9F2B17 #179F2B
tetradic
#2B179F #9F1747 #8B9F17 #179F6F
square
#2B179F #9F1747 #8B9F17 #179F6F
split-complementary
#2B179F #9F6F17 #479F17
monochromatic
#0E0834 #1D0F6A #2B179F #391FD4 #624BE5
Accessibility & contrast
On white
12.17
#2B179F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2B179F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B179F
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B179F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B179F | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2b179f; /* rgb */ color: rgb(43, 23, 159); /* oklch */ color: oklch(35.3% 0.198 275.8);
Tailwind
colors: {
custom: {
50: '#785abd',
500: '#2b179f',
950: '#000000',
},
}SCSS
$custom: #2b179f; $custom-light: #785abd; $custom-dark: #000000;
JSON
{
"hex": "#2b179f",
"rgb": {
"r": 43,
"g": 23,
"b": 159
},
"hsl": {
"h": 248.824,
"s": 74.725,
"l": 35.686
},
"oklch": {
"l": 0.35341,
"c": 0.19827,
"h": 275.8
},
"luminance": 0.0363
}Semantic roles & 50–950 ramp
primary
#2B179F
secondary
#B5C74B
accent
#F136D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981