#1B042D#1B042D

#1B042D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.080 H 305.9°. Best body text is #FFFFFF at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#1B042D
RGBrgb(27, 4, 45)
HSLhsl(274, 84%, 10%)
HSVhsv(274, 91%, 18%)
CMYKcmyk(40%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.60, 19.62, -21.55)
CIE-LCHlch(4.60, 29.14, 312.32°)
OKLaboklab(18.22% 0.0468 -0.0645)
OKLCHoklch(18.22% 0.08 305.9)
XYZxyz(0.9690, 0.5093, 2.5294)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B042D #162D04
analogous
#07042D #1B042D #2D042B
triadic
#1B042D #2D1B04 #042D1B
tetradic
#1B042D #2D0704 #162D04 #042B2D
square
#1B042D #2D0704 #162D04 #042B2D
split-complementary
#1B042D #2B2D04 #042D07
monochromatic
#11021C #11021C #1B042D #3D0965 #5E0E9D

Accessibility & contrast

On white

19.06
#1B042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1B042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B042D
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B042D#FFFFFF#000000##FFFFFF
##1B042D1.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#180D18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b042d;
/* rgb */ color: rgb(27, 4, 45);
/* oklch */ color: oklch(18.2% 0.080 305.9);
Tailwind
colors: {
  custom: {
    50: '#594866',
    500: '#1b042d',
    950: '#000000',
  },
}
SCSS
$custom: #1b042d;
$custom-light: #594866;
$custom-dark: #000000;
JSON
{
  "hex": "#1b042d",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 273.659,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1822,
    "c": 0.07965,
    "h": 305.9
  },
  "luminance": 0.00509
}

Semantic roles & 50–950 ramp

primary
#1B042D
secondary
#41701D
accent
#FA2E87
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1B042D

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

Preview Lab → · Contrast checker → · Palette generator →

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