#1C012D#1C012D

#1C012D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.087 H 308.7°. Best body text is #FFFFFF at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#1C012D
RGBrgb(28, 1, 45)
HSLhsl(277, 96%, 9%)
HSVhsv(277, 98%, 18%)
CMYKcmyk(37.8%, 97.8%, 0%, 82.4%)
CIE-LABlab(4.14, 21.40, -22.27)
CIE-LCHlch(4.14, 30.89, 313.86°)
OKLaboklab(17.78% 0.0543 -0.0677)
OKLCHoklch(17.78% 0.087 308.7)
XYZxyz(0.9633, 0.4581, 2.5198)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C012D #122D01
analogous
#06012D #1C012D #2D0128
triadic
#1C012D #2D1C01 #012D1C
tetradic
#1C012D #2D0601 #122D01 #01282D
square
#1C012D #2D0601 #122D01 #01282D
split-complementary
#1C012D #282D01 #012D06
monochromatic
#13011E #13011E #1C012D #410269 #6704A5

Accessibility & contrast

On white

19.24
#1C012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C012D
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C012D#FFFFFF#000000##FFFFFF
##1C012D1.0019.241.0919.24
#FFFFFF19.241.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#190B16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1c012d;
/* rgb */ color: rgb(28, 1, 45);
/* oklch */ color: oklch(17.8% 0.087 308.7);
Tailwind
colors: {
  custom: {
    50: '#594666',
    500: '#1c012d',
    950: '#000000',
  },
}
SCSS
$custom: #1c012d;
$custom-light: #594666;
$custom-dark: #000000;
JSON
{
  "hex": "#1c012d",
  "rgb": {
    "r": 28,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 276.818,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17777,
    "c": 0.08677,
    "h": 308.7
  },
  "luminance": 0.00458
}

Semantic roles & 50–950 ramp

primary
#1C012D
secondary
#3A7317
accent
#FF297C
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1C012D

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

Preview Lab → · Contrast checker → · Palette generator →

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