#2C1F98#2C1F98
#2C1F98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.183 H 276.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F98 |
|---|---|
| RGB | rgb(44, 31, 152) |
| HSL | hsl(246, 66%, 36%) |
| HSV | hsv(246, 80%, 60%) |
| CMYK | cmyk(71.1%, 79.6%, 0%, 40.4%) |
| CIE-LAB | lab(22.94, 43.67, -63.08) |
| CIE-LCH | lch(22.94, 76.73, 304.70°) |
| OKLab | oklab(35.49% 0.0203 -0.1823) |
| OKLCH | oklch(35.49% 0.183 276.4) |
| XYZ | xyz(7.1943, 3.7818, 30.0505) |
| Luminance | 0.0378 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.86
Indigo Blue
#3A18B1
ΔE00 3.97
Cobalt Blue
#030AA7
ΔE00 4.07
Royal Blue (survey)
#0504AA
ΔE00 4.55
Ultramarine
#2000B1
ΔE00 4.80
Indigo (survey)
#380282
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F98 #8B981F
analogous
#1F4E98 #2C1F98 #681F98
triadic
#2C1F98 #982C1F #1F982C
tetradic
#2C1F98 #981F4E #8B981F #1F9868
square
#2C1F98 #981F4E #8B981F #1F9868
split-complementary
#2C1F98 #98681F #4E981F
monochromatic
#0F0A32 #1D1565 #2C1F98 #3B29CB #6455DC
Accessibility & contrast
On white
11.96
#2C1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2C1F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F98
11.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F98 | 1.00 | 11.96 | 1.76 | 11.96 |
| #FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2c1f98; /* rgb */ color: rgb(44, 31, 152); /* oklch */ color: oklch(35.5% 0.183 276.4);
Tailwind
colors: {
custom: {
50: '#765eb8',
500: '#2c1f98',
950: '#000000',
},
}SCSS
$custom: #2c1f98; $custom-light: #765eb8; $custom-dark: #000000;
JSON
{
"hex": "#2c1f98",
"rgb": {
"r": 44,
"g": 31,
"b": 152
},
"hsl": {
"h": 246.446,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.3549,
"c": 0.18347,
"h": 276.4
},
"luminance": 0.03782
}Semantic roles & 50–950 ramp
primary
#2C1F98
secondary
#B4C053
accent
#E93FD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980