#1B022D#1B022D

#1B022D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.084 H 306.9°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#1B022D
RGBrgb(27, 2, 45)
HSLhsl(275, 91%, 9%)
HSVhsv(275, 96%, 18%)
CMYKcmyk(40%, 95.6%, 0%, 82.4%)
CIE-LABlab(4.21, 20.50, -22.17)
CIE-LCHlch(4.21, 30.19, 312.75°)
OKLaboklab(17.81% 0.0505 -0.0672)
OKLCHoklch(17.81% 0.084 306.9)
XYZxyz(0.9473, 0.4659, 2.5221)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B022D #142D02
analogous
#06022D #1B022D #2D022A
triadic
#1B022D #2D1B02 #022D1B
tetradic
#1B022D #2D0602 #142D02 #022A2D
square
#1B022D #2D0602 #142D02 #022A2D
split-complementary
#1B022D #2A2D02 #022D06
monochromatic
#12011D #12011D #1B022D #3E0568 #6107A2

Accessibility & contrast

On white

19.21
#1B022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1B022D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B022D
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B022D#FFFFFF#000000##FFFFFF
##1B022D1.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#180C17
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1b022d;
/* rgb */ color: rgb(27, 2, 45);
/* oklch */ color: oklch(17.8% 0.084 306.9);
Tailwind
colors: {
  custom: {
    50: '#584766',
    500: '#1b022d',
    950: '#000000',
  },
}
SCSS
$custom: #1b022d;
$custom-light: #584766;
$custom-dark: #000000;
JSON
{
  "hex": "#1b022d",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 274.884,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17813,
    "c": 0.08412,
    "h": 306.9
  },
  "luminance": 0.00466
}

Semantic roles & 50–950 ramp

primary
#1B022D
secondary
#3E7219
accent
#FF2982
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1B022D

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

Preview Lab → · Contrast checker → · Palette generator →

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