#1C0C46#1C0C46

#1C0C46 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.100 H 287.9°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#1C0C46
RGBrgb(28, 12, 70)
HSLhsl(257, 71%, 16%)
HSVhsv(257, 83%, 27%)
CMYKcmyk(60%, 82.9%, 0%, 72.5%)
CIE-LABlab(8.58, 25.19, -33.24)
CIE-LCHlch(8.58, 41.70, 307.16°)
OKLaboklab(22.32% 0.031 -0.0956)
OKLCHoklch(22.32% 0.1 287.9)
XYZxyz(1.7155, 0.9519, 5.8865)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0C46 #36460C
analogous
#0C1946 #1C0C46 #390C46
triadic
#1C0C46 #461C0C #0C461C
tetradic
#1C0C46 #460C19 #36460C #0C4639
square
#1C0C46 #460C19 #36460C #0C4639
split-complementary
#1C0C46 #46390C #19460C
monochromatic
#0A041A #0A041A #1C0C46 #31157A #461EAE

Accessibility & contrast

On white

17.64
#1C0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1C0C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0C46
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0C46#FFFFFF#000000##FFFFFF
##1C0C461.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#0B1C28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1c0c46;
/* rgb */ color: rgb(28, 12, 70);
/* oklch */ color: oklch(22.3% 0.100 287.9);
Tailwind
colors: {
  custom: {
    50: '#5e4c7a',
    500: '#1c0c46',
    950: '#000000',
  },
}
SCSS
$custom: #1c0c46;
$custom-light: #5e4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0c46",
  "rgb": {
    "r": 28,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 256.552,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22315,
    "c": 0.10047,
    "h": 287.9
  },
  "luminance": 0.00952
}

Semantic roles & 50–950 ramp

primary
#1C0C46
secondary
#6A822C
accent
#ED3ABC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1C0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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