#1C0C4C#1C0C4C

#1C0C4C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.109 H 285.6°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#1C0C4C
RGBrgb(28, 12, 76)
HSLhsl(255, 73%, 17%)
HSVhsv(255, 84%, 30%)
CMYKcmyk(63.2%, 84.2%, 0%, 70.2%)
CIE-LABlab(9.25, 27.20, -36.33)
CIE-LCHlch(9.25, 45.39, 306.82°)
OKLaboklab(22.99% 0.0291 -0.1046)
OKLCHoklch(22.99% 0.109 285.6)
XYZxyz(1.9145, 1.0315, 6.9343)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0C4C #3C4C0C
analogous
#0C1C4C #1C0C4C #3C0C4C
triadic
#1C0C4C #4C1C0C #0C4C1C
tetradic
#1C0C4C #4C0C1C #3C4C0C #0C4C3C
square
#1C0C4C #4C0C1C #3C4C0C #0C4C3C
split-complementary
#1C0C4C #4C3C0C #1C4C0C
monochromatic
#0A041A #0A041A #1C0C4C #2F1481 #431DB6

Accessibility & contrast

On white

17.41
#1C0C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1C0C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0C4C
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0C4C#FFFFFF#000000##FFFFFF
##1C0C4C1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00184B
Tritanopia (blue-blind)
#051E2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1c0c4c;
/* rgb */ color: rgb(28, 12, 76);
/* oklch */ color: oklch(23.0% 0.109 285.6);
Tailwind
colors: {
  custom: {
    50: '#5f4d7f',
    500: '#1c0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #1c0c4c;
$custom-light: #5f4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0c4c",
  "rgb": {
    "r": 28,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 255,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22986,
    "c": 0.10862,
    "h": 285.6
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#1C0C4C
secondary
#71882C
accent
#EF38C2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1C0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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