#1C0331#1C0331

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

Color values

HEX#1C0331
RGBrgb(28, 3, 49)
HSLhsl(273, 88%, 10%)
HSVhsv(273, 94%, 19%)
CMYKcmyk(42.9%, 93.9%, 0%, 80.8%)
CIE-LABlab(4.82, 22.16, -24.18)
CIE-LCHlch(4.82, 32.80, 312.50°)
OKLaboklab(18.61% 0.0489 -0.0717)
OKLCHoklch(18.61% 0.087 304.3)
XYZxyz(1.0657, 0.5338, 2.9520)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0331 #183103
analogous
#050331 #1C0331 #31032F
triadic
#1C0331 #311C03 #03311C
tetradic
#1C0331 #310503 #183103 #032F31
square
#1C0331 #310503 #183103 #032F31
split-complementary
#1C0331 #2F3103 #033105
monochromatic
#10021D #10021D #1C0331 #3D076B #5E0AA4

Accessibility & contrast

On white

18.97
#1C0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1C0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0331
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0331#FFFFFF#000000##FFFFFF
##1C03311.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#180E19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1c0331;
/* rgb */ color: rgb(28, 3, 49);
/* oklch */ color: oklch(18.6% 0.087 304.3);
Tailwind
colors: {
  custom: {
    50: '#5a4769',
    500: '#1c0331',
    950: '#000000',
  },
}
SCSS
$custom: #1c0331;
$custom-light: #5a4769;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0331",
  "rgb": {
    "r": 28,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 272.609,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18605,
    "c": 0.0868,
    "h": 304.3
  },
  "luminance": 0.00534
}

Semantic roles & 50–950 ramp

primary
#1C0331
secondary
#44741B
accent
#FF298B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1C0331

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

Preview Lab → · Contrast checker → · Palette generator →

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