#1C0642#1C0642

#1C0642 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.103 H 291.8°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#1C0642
RGBrgb(28, 6, 66)
HSLhsl(262, 83%, 14%)
HSVhsv(262, 91%, 26%)
CMYKcmyk(57.6%, 90.9%, 0%, 74.1%)
CIE-LABlab(6.96, 27.21, -33.08)
CIE-LCHlch(6.96, 42.83, 309.44°)
OKLaboklab(21.01% 0.038 -0.0953)
OKLCHoklch(21.01% 0.103 291.8)
XYZxyz(1.5271, 0.7704, 5.2214)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0642 #2C4206
analogous
#060E42 #1C0642 #3A0642
triadic
#1C0642 #421C06 #06421C
tetradic
#1C0642 #42060E #2C4206 #06423A
square
#1C0642 #42060E #2C4206 #06423A
split-complementary
#1C0642 #423A06 #0E4206
monochromatic
#0C031C #0C031C #1C0642 #340B7A #4C10B2

Accessibility & contrast

On white

18.20
#1C0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1C0642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0642
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0642#FFFFFF#000000##FFFFFF
##1C06421.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#0F1724
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1c0642;
/* rgb */ color: rgb(28, 6, 66);
/* oklch */ color: oklch(21.0% 0.103 291.8);
Tailwind
colors: {
  custom: {
    50: '#5e4977',
    500: '#1c0642',
    950: '#000000',
  },
}
SCSS
$custom: #1c0642;
$custom-light: #5e4977;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0642",
  "rgb": {
    "r": 28,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 262,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2101,
    "c": 0.1026,
    "h": 291.8
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#1C0642
secondary
#5F8222
accent
#FA2EAF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1C0642

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

Preview Lab → · Contrast checker → · Palette generator →

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