#1C0C4B#1C0C4B

#1C0C4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.107 H 285.9°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#1C0C4B
RGBrgb(28, 12, 75)
HSLhsl(255, 72%, 17%)
HSVhsv(255, 84%, 29%)
CMYKcmyk(62.7%, 84%, 0%, 70.6%)
CIE-LABlab(9.14, 26.87, -35.82)
CIE-LCHlch(9.14, 44.78, 306.87°)
OKLaboklab(22.87% 0.0294 -0.1031)
OKLCHoklch(22.87% 0.107 285.9)
XYZxyz(1.8800, 1.0177, 6.7526)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0C4B #3B4B0C
analogous
#0C1C4B #1C0C4B #3C0C4B
triadic
#1C0C4B #4B1C0C #0C4B1C
tetradic
#1C0C4B #4B0C1C #3B4B0C #0C4B3C
square
#1C0C4B #4B0C1C #3B4B0C #0C4B3C
split-complementary
#1C0C4B #4B3C0C #1C4B0C
monochromatic
#0A041A #0A041A #1C0C4B #301480 #431DB5

Accessibility & contrast

On white

17.45
#1C0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1C0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0C4B
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0C4B#FFFFFF#000000##FFFFFF
##1C0C4B1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#061E2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1c0c4b;
/* rgb */ color: rgb(28, 12, 75);
/* oklch */ color: oklch(22.9% 0.107 285.9);
Tailwind
colors: {
  custom: {
    50: '#5f4d7e',
    500: '#1c0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #1c0c4b;
$custom-light: #5f4d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0c4b",
  "rgb": {
    "r": 28,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 255.238,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22872,
    "c": 0.10727,
    "h": 285.9
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#1C0C4B
secondary
#70872C
accent
#EF39C1
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1C0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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