#1B072D#1B072D

#1B072D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.074 H 304.4°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#1B072D
RGBrgb(27, 7, 45)
HSLhsl(272, 73%, 10%)
HSVhsv(272, 84%, 18%)
CMYKcmyk(40%, 84.4%, 0%, 82.4%)
CIE-LABlab(5.19, 18.29, -20.62)
CIE-LCHlch(5.19, 27.56, 311.57°)
OKLaboklab(18.8% 0.0416 -0.0606)
OKLCHoklch(18.8% 0.074 304.4)
XYZxyz(1.0015, 0.5744, 2.5402)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B072D #192D07
analogous
#08072D #1B072D #2D072C
triadic
#1B072D #2D1B07 #072D1B
tetradic
#1B072D #2D0807 #192D07 #072C2D
square
#1B072D #2D0807 #192D07 #072C2D
split-complementary
#1B072D #2C2D07 #072D08
monochromatic
#10041A #10041A #1B072D #3B0F62 #5B1797

Accessibility & contrast

On white

18.84
#1B072D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B072D
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B072D#FFFFFF#000000##FFFFFF
##1B072D1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#181019
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b072d;
/* rgb */ color: rgb(27, 7, 45);
/* oklch */ color: oklch(18.8% 0.074 304.4);
Tailwind
colors: {
  custom: {
    50: '#594966',
    500: '#1b072d',
    950: '#000000',
  },
}
SCSS
$custom: #1b072d;
$custom-light: #594966;
$custom-dark: #000000;
JSON
{
  "hex": "#1b072d",
  "rgb": {
    "r": 27,
    "g": 7,
    "b": 45
  },
  "hsl": {
    "h": 271.579,
    "s": 73.077,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18797,
    "c": 0.07351,
    "h": 304.4
  },
  "luminance": 0.00574
}

Semantic roles & 50–950 ramp

primary
#1B072D
secondary
#466D23
accent
#F0388F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #1B072D

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

Preview Lab → · Contrast checker → · Palette generator →

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