#2C1F9B#2C1F9B
#2C1F9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.187 H 276.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F9B |
|---|---|
| RGB | rgb(44, 31, 155) |
| HSL | hsl(246, 67%, 36%) |
| HSV | hsv(246, 80%, 61%) |
| CMYK | cmyk(71.6%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(23.28, 44.63, -64.37) |
| CIE-LCH | lch(23.28, 78.32, 304.73°) |
| OKLab | oklab(35.83% 0.0195 -0.1861) |
| OKLCH | oklch(35.83% 0.187 276) |
| XYZ | xyz(7.4431, 3.8813, 31.3609) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.01
Indigo Blue
#3A18B1
ΔE00 3.60
Cobalt Blue
#030AA7
ΔE00 3.90
Royal Blue (survey)
#0504AA
ΔE00 4.37
Ultramarine
#2000B1
ΔE00 4.53
Indigo (survey)
#380282
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F9B #8E9B1F
analogous
#1F509B #2C1F9B #6A1F9B
triadic
#2C1F9B #9B2C1F #1F9B2C
tetradic
#2C1F9B #9B1F50 #8E9B1F #1F9B6A
square
#2C1F9B #9B1F50 #8E9B1F #1F9B6A
split-complementary
#2C1F9B #9B6A1F #509B1F
monochromatic
#0F0B35 #1E1568 #2C1F9B #3A29CE #6557DD
Accessibility & contrast
On white
11.82
#2C1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2C1F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F9B
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F9B | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2c1f9b; /* rgb */ color: rgb(44, 31, 155); /* oklch */ color: oklch(35.8% 0.187 276.0);
Tailwind
colors: {
custom: {
50: '#775eba',
500: '#2c1f9b',
950: '#000000',
},
}SCSS
$custom: #2c1f9b; $custom-light: #775eba; $custom-dark: #000000;
JSON
{
"hex": "#2c1f9b",
"rgb": {
"r": 44,
"g": 31,
"b": 155
},
"hsl": {
"h": 246.29,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.35825,
"c": 0.18709,
"h": 276
},
"luminance": 0.03882
}Semantic roles & 50–950 ramp
primary
#2C1F9B
secondary
#B6C155
accent
#EA3ED8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981