#2D1FAC#2D1FAC
#2D1FAC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.207 H 274.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1FAC |
|---|---|
| RGB | rgb(45, 31, 172) |
| HSL | hsl(246, 69%, 40%) |
| HSV | hsv(246, 82%, 67%) |
| CMYK | cmyk(73.8%, 82%, 0%, 32.5%) |
| CIE-LAB | lab(25.31, 49.98, -71.32) |
| CIE-LCH | lch(25.31, 87.09, 305.02°) |
| OKLab | oklab(37.83% 0.0163 -0.2062) |
| OKLCH | oklch(37.83% 0.207 274.5) |
| XYZ | xyz(9.0161, 4.5155, 39.4181) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.87
Ultramarine
#2000B1
ΔE00 3.74
Cobalt Blue
#030AA7
ΔE00 3.94
True Blue
#010FCC
ΔE00 4.12
Royal Blue (survey)
#0504AA
ΔE00 4.21
Royal
#0C1793
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1FAC #9EAC1F
analogous
#1F58AC #2D1FAC #731FAC
triadic
#2D1FAC #AC2D1F #1FAC2D
tetradic
#2D1FAC #AC1F58 #9EAC1F #1FAC73
square
#2D1FAC #AC1F58 #9EAC1F #1FAC73
split-complementary
#2D1FAC #AC731F #58AC1F
monochromatic
#120C44 #1F1678 #2D1FAC #402FD9 #6F63E3
Accessibility & contrast
On white
11.03
#2D1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2D1FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1FAC
11.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1FAC | 1.00 | 11.03 | 1.90 | 11.03 |
| #FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2d1fac; /* rgb */ color: rgb(45, 31, 172); /* oklch */ color: oklch(37.8% 0.207 274.5);
Tailwind
colors: {
custom: {
50: '#7c5fc6',
500: '#2d1fac',
950: '#000000',
},
}SCSS
$custom: #2d1fac; $custom-light: #7c5fc6; $custom-dark: #000000;
JSON
{
"hex": "#2d1fac",
"rgb": {
"r": 45,
"g": 31,
"b": 172
},
"hsl": {
"h": 245.957,
"s": 69.458,
"l": 39.804
},
"oklch": {
"l": 0.37828,
"c": 0.20689,
"h": 274.5
},
"luminance": 0.04516
}Semantic roles & 50–950 ramp
primary
#2D1FAC
secondary
#BDC85F
accent
#EC3CDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982