#1C0D4C#1C0D4C

#1C0D4C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.107 H 285.3°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#1C0D4C
RGBrgb(28, 13, 76)
HSLhsl(254, 71%, 17%)
HSVhsv(254, 83%, 30%)
CMYKcmyk(63.2%, 82.9%, 0%, 70.2%)
CIE-LABlab(9.45, 26.63, -36.00)
CIE-LCHlch(9.45, 44.78, 306.49°)
OKLaboklab(23.13% 0.0283 -0.1037)
OKLCHoklch(23.13% 0.107 285.3)
XYZxyz(1.9269, 1.0564, 6.9384)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0D4C #3D4C0D
analogous
#0D1D4C #1C0D4C #3C0D4C
triadic
#1C0D4C #4C1C0D #0D4C1C
tetradic
#1C0D4C #4C0D1D #3D4C0D #0D4C3C
square
#1C0D4C #4C0D1D #3D4C0D #0D4C3C
split-complementary
#1C0D4C #4C3C0D #1D4C0D
monochromatic
#0A041A #0A041A #1C0D4C #2F1680 #431FB5

Accessibility & contrast

On white

17.34
#1C0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C0D4C
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0D4C#FFFFFF#000000##FFFFFF
##1C0D4C1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1c0d4c;
/* rgb */ color: rgb(28, 13, 76);
/* oklch */ color: oklch(23.1% 0.107 285.3);
Tailwind
colors: {
  custom: {
    50: '#5f4d7f',
    500: '#1c0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #1c0d4c;
$custom-light: #5f4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0d4c",
  "rgb": {
    "r": 28,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 254.286,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23127,
    "c": 0.10747,
    "h": 285.3
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#1C0D4C
secondary
#72872E
accent
#EE3AC3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1C0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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