#1C0742#1C0742

#1C0742 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.101 H 291.4°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#1C0742
RGBrgb(28, 7, 66)
HSLhsl(261, 81%, 14%)
HSVhsv(261, 89%, 26%)
CMYKcmyk(57.6%, 89.4%, 0%, 74.1%)
CIE-LABlab(7.16, 26.66, -32.76)
CIE-LCHlch(7.16, 42.23, 309.14°)
OKLaboklab(21.16% 0.037 -0.0943)
OKLCHoklch(21.16% 0.101 291.4)
XYZxyz(1.5380, 0.7921, 5.2251)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0742 #2D4207
analogous
#071042 #1C0742 #3A0742
triadic
#1C0742 #421C07 #07421C
tetradic
#1C0742 #420710 #2D4207 #07423A
square
#1C0742 #420710 #2D4207 #07423A
split-complementary
#1C0742 #423A07 #104207
monochromatic
#0C031C #0C031C #1C0742 #330D79 #4B13B1

Accessibility & contrast

On white

18.13
#1C0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1C0742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0742
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0742#FFFFFF#000000##FFFFFF
##1C07421.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#0F1825
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1c0742;
/* rgb */ color: rgb(28, 7, 66);
/* oklch */ color: oklch(21.2% 0.101 291.4);
Tailwind
colors: {
  custom: {
    50: '#5e4977',
    500: '#1c0742',
    950: '#000000',
  },
}
SCSS
$custom: #1c0742;
$custom-light: #5e4977;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0742",
  "rgb": {
    "r": 28,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 261.356,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21158,
    "c": 0.10128,
    "h": 291.4
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#1C0742
secondary
#608124
accent
#F731B1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1C0742

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

Preview Lab → · Contrast checker → · Palette generator →

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