#1C012C#1C012C

#1C012C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.7% C 0.086 H 309.7°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#1C012C
RGBrgb(28, 1, 44)
HSLhsl(278, 96%, 9%)
HSVhsv(278, 98%, 17%)
CMYKcmyk(36.4%, 97.7%, 0%, 82.7%)
CIE-LABlab(4.07, 20.98, -21.63)
CIE-LCHlch(4.07, 30.13, 314.13°)
OKLaboklab(17.67% 0.0547 -0.066)
OKLCHoklch(17.67% 0.086 309.7)
XYZxyz(0.9443, 0.4505, 2.4196)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C012C #112C01
analogous
#06012C #1C012C #2C0127
triadic
#1C012C #2C1C01 #012C1C
tetradic
#1C012C #2C0601 #112C01 #01272C
square
#1C012C #2C0601 #112C01 #01272C
split-complementary
#1C012C #272C01 #012C06
monochromatic
#13011E #13011E #1C012C #420268 #6804A4

Accessibility & contrast

On white

19.27
#1C012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1C012C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C012C
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C012C#FFFFFF#000000##FFFFFF
##1C012C1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#1A0A16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1c012c;
/* rgb */ color: rgb(28, 1, 44);
/* oklch */ color: oklch(17.7% 0.086 309.7);
Tailwind
colors: {
  custom: {
    50: '#594665',
    500: '#1c012c',
    950: '#000000',
  },
}
SCSS
$custom: #1c012c;
$custom-light: #594665;
$custom-dark: #000000;
JSON
{
  "hex": "#1c012c",
  "rgb": {
    "r": 28,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 277.674,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.1767,
    "c": 0.08572,
    "h": 309.7
  },
  "luminance": 0.0045
}

Semantic roles & 50–950 ramp

primary
#1C012C
secondary
#397217
accent
#FF2979
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1C012C

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

Preview Lab → · Contrast checker → · Palette generator →

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