#1B072E#1B072E

#1B072E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.075 H 303.6°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#1B072E
RGBrgb(27, 7, 46)
HSLhsl(271, 74%, 10%)
HSVhsv(271, 85%, 18%)
CMYKcmyk(41.3%, 84.8%, 0%, 82%)
CIE-LABlab(5.26, 18.69, -21.25)
CIE-LCHlch(5.26, 28.30, 311.33°)
OKLaboklab(18.89% 0.0414 -0.0624)
OKLCHoklch(18.89% 0.075 303.6)
XYZxyz(1.0210, 0.5822, 2.6428)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B072E #1A2E07
analogous
#07072E #1B072E #2E072D
triadic
#1B072E #2E1B07 #072E1B
tetradic
#1B072E #2E0707 #1A2E07 #072D2E
square
#1B072E #2E0707 #1A2E07 #072D2E
split-complementary
#1B072E #2D2E07 #072E07
monochromatic
#10041B #10041B #1B072E #3A0F63 #591798

Accessibility & contrast

On white

18.81
#1B072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1B072E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B072E
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B072E#FFFFFF#000000##FFFFFF
##1B072E1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#171019
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b072e;
/* rgb */ color: rgb(27, 7, 46);
/* oklch */ color: oklch(18.9% 0.075 303.6);
Tailwind
colors: {
  custom: {
    50: '#594967',
    500: '#1b072e',
    950: '#000000',
  },
}
SCSS
$custom: #1b072e;
$custom-light: #594967;
$custom-dark: #000000;
JSON
{
  "hex": "#1b072e",
  "rgb": {
    "r": 27,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 270.769,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.18893,
    "c": 0.07485,
    "h": 303.6
  },
  "luminance": 0.00582
}

Semantic roles & 50–950 ramp

primary
#1B072E
secondary
#476E23
accent
#F03892
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #1B072E

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

Preview Lab → · Contrast checker → · Palette generator →

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