#2C1F9F#2C1F9F
#2C1F9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.192 H 275.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F9F |
|---|---|
| RGB | rgb(44, 31, 159) |
| HSL | hsl(246, 67%, 37%) |
| HSV | hsv(246, 81%, 62%) |
| CMYK | cmyk(72.3%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(23.73, 45.89, -66.06) |
| CIE-LCH | lch(23.73, 80.43, 304.79°) |
| OKLab | oklab(36.28% 0.0185 -0.191) |
| OKLCH | oklch(36.28% 0.192 275.5) |
| XYZ | xyz(7.7846, 4.0179, 33.1594) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.12
Royal
#0C1793
ΔE00 3.29
Cobalt Blue
#030AA7
ΔE00 3.76
Royal Blue (survey)
#0504AA
ΔE00 4.19
Ultramarine
#2000B1
ΔE00 4.23
True Blue
#010FCC
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F9F #929F1F
analogous
#1F529F #2C1F9F #6C1F9F
triadic
#2C1F9F #9F2C1F #1F9F2C
tetradic
#2C1F9F #9F1F52 #929F1F #1F9F6C
square
#2C1F9F #9F1F52 #929F1F #1F9F6C
split-complementary
#2C1F9F #9F6C1F #529F1F
monochromatic
#100B39 #1E156C #2C1F9F #3A29D2 #675ADF
Accessibility & contrast
On white
11.64
#2C1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2C1F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F9F
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F9F | 1.00 | 11.64 | 1.80 | 11.64 |
| #FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2c1f9f; /* rgb */ color: rgb(44, 31, 159); /* oklch */ color: oklch(36.3% 0.192 275.5);
Tailwind
colors: {
custom: {
50: '#785ebd',
500: '#2c1f9f',
950: '#000000',
},
}SCSS
$custom: #2c1f9f; $custom-light: #785ebd; $custom-dark: #000000;
JSON
{
"hex": "#2c1f9f",
"rgb": {
"r": 44,
"g": 31,
"b": 159
},
"hsl": {
"h": 246.094,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.36276,
"c": 0.19188,
"h": 275.5
},
"luminance": 0.04019
}Semantic roles & 50–950 ramp
primary
#2C1F9F
secondary
#B8C357
accent
#EA3ED9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981