#1C0840#1C0840

#1C0840 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.097 H 292.1°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#1C0840
RGBrgb(28, 8, 64)
HSLhsl(261, 78%, 14%)
HSVhsv(261, 88%, 25%)
CMYKcmyk(56.2%, 87.5%, 0%, 74.9%)
CIE-LABlab(7.14, 25.41, -31.35)
CIE-LCHlch(7.14, 40.36, 309.02°)
OKLaboklab(21.08% 0.0367 -0.0902)
OKLCHoklch(21.08% 0.097 292.1)
XYZxyz(1.4909, 0.7907, 4.9236)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0840 #2C4008
analogous
#081040 #1C0840 #380840
triadic
#1C0840 #401C08 #08401C
tetradic
#1C0840 #400810 #2C4008 #084038
square
#1C0840 #400810 #2C4008 #084038
split-complementary
#1C0840 #403808 #104008
monochromatic
#0C031B #0C031B #1C0840 #340F76 #4C16AD

Accessibility & contrast

On white

18.13
#1C0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1C0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0840
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0840#FFFFFF#000000##FFFFFF
##1C08401.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#101824
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1c0840;
/* rgb */ color: rgb(28, 8, 64);
/* oklch */ color: oklch(21.1% 0.097 292.1);
Tailwind
colors: {
  custom: {
    50: '#5d4a75',
    500: '#1c0840',
    950: '#000000',
  },
}
SCSS
$custom: #1c0840;
$custom-light: #5d4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0840",
  "rgb": {
    "r": 28,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 261.429,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21079,
    "c": 0.09737,
    "h": 292.1
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#1C0840
secondary
#5F7E25
accent
#F434AF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1C0840

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

Preview Lab → · Contrast checker → · Palette generator →

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