#1C0540#1C0540

#1C0540 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.101 H 293.2°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#1C0540
RGBrgb(28, 5, 64)
HSLhsl(263, 86%, 14%)
HSVhsv(263, 92%, 25%)
CMYKcmyk(56.2%, 92.2%, 0%, 74.9%)
CIE-LABlab(6.55, 27.03, -32.32)
CIE-LCHlch(6.55, 42.13, 309.91°)
OKLaboklab(20.63% 0.0399 -0.0933)
OKLCHoklch(20.63% 0.101 293.2)
XYZxyz(1.4583, 0.7255, 4.9127)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0540 #294005
analogous
#050B40 #1C0540 #390540
triadic
#1C0540 #401C05 #05401C
tetradic
#1C0540 #40050B #294005 #054039
square
#1C0540 #40050B #294005 #054039
split-complementary
#1C0540 #403905 #0B4005
monochromatic
#0C021C #0C021C #1C0540 #350979 #4E0EB2

Accessibility & contrast

On white

18.34
#1C0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1C0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0540
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0540#FFFFFF#000000##FFFFFF
##1C05401.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#101623
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1c0540;
/* rgb */ color: rgb(28, 5, 64);
/* oklch */ color: oklch(20.6% 0.101 293.2);
Tailwind
colors: {
  custom: {
    50: '#5d4875',
    500: '#1c0540',
    950: '#000000',
  },
}
SCSS
$custom: #1c0540;
$custom-light: #5d4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0540",
  "rgb": {
    "r": 28,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 263.39,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20627,
    "c": 0.10148,
    "h": 293.2
  },
  "luminance": 0.00726
}

Semantic roles & 50–950 ramp

primary
#1C0540
secondary
#5B8120
accent
#FC2CAB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1C0540

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1C0540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva