#2C1F90#2C1F90
#2C1F90 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.174 H 277.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F90 |
|---|---|
| RGB | rgb(44, 31, 144) |
| HSL | hsl(247, 65%, 34%) |
| HSV | hsv(247, 78%, 56%) |
| CMYK | cmyk(69.4%, 78.5%, 0%, 43.5%) |
| CIE-LAB | lab(22.05, 41.11, -59.61) |
| CIE-LCH | lch(22.05, 72.41, 304.59°) |
| OKLab | oklab(34.6% 0.0224 -0.1722) |
| OKLCH | oklch(34.6% 0.174 277.4) |
| XYZ | xyz(6.5611, 3.5285, 26.7155) |
| Luminance | 0.0353 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.77
Cobalt Blue
#030AA7
ΔE00 4.72
Indigo Blue
#3A18B1
ΔE00 5.03
Royal Blue (survey)
#0504AA
ΔE00 5.23
Indigo (survey)
#380282
ΔE00 5.32
Midnight Blue
#191970
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F90 #83901F
analogous
#1F4B90 #2C1F90 #651F90
triadic
#2C1F90 #902C1F #1F902C
tetradic
#2C1F90 #901F4B #83901F #1F9065
square
#2C1F90 #901F4B #83901F #1F9065
split-complementary
#2C1F90 #90651F #4B901F
monochromatic
#0D092B #1D145E #2C1F90 #3B2AC2 #6050D9
Accessibility & contrast
On white
12.31
#2C1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2C1F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F90
12.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F90 | 1.00 | 12.31 | 1.71 | 12.31 |
| #FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2c1f90; /* rgb */ color: rgb(44, 31, 144); /* oklch */ color: oklch(34.6% 0.174 277.4);
Tailwind
colors: {
custom: {
50: '#755db2',
500: '#2c1f90',
950: '#000000',
},
}SCSS
$custom: #2c1f90; $custom-light: #755db2; $custom-dark: #000000;
JSON
{
"hex": "#2c1f90",
"rgb": {
"r": 44,
"g": 31,
"b": 144
},
"hsl": {
"h": 246.903,
"s": 64.571,
"l": 34.314
},
"oklch": {
"l": 0.34604,
"c": 0.17369,
"h": 277.4
},
"luminance": 0.03529
}Semantic roles & 50–950 ramp
primary
#2C1F90
secondary
#B0BC4E
accent
#E840D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980