#1B022C#1B022C

#1B022C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.083 H 307.8°. Best body text is #FFFFFF at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#1B022C
RGBrgb(27, 2, 44)
HSLhsl(276, 91%, 9%)
HSVhsv(276, 95%, 17%)
CMYKcmyk(38.6%, 95.5%, 0%, 82.7%)
CIE-LABlab(4.14, 20.06, -21.52)
CIE-LCHlch(4.14, 29.42, 312.99°)
OKLaboklab(17.71% 0.0509 -0.0655)
OKLCHoklch(17.71% 0.083 307.8)
XYZxyz(0.9282, 0.4583, 2.4219)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B022C #132C02
analogous
#06022C #1B022C #2C0228
triadic
#1B022C #2C1B02 #022C1B
tetradic
#1B022C #2C0602 #132C02 #02282C
square
#1B022C #2C0602 #132C02 #02282C
split-complementary
#1B022C #282C02 #022C06
monochromatic
#12011D #12011D #1B022C #3F0567 #6307A1

Accessibility & contrast

On white

19.24
#1B022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B022C
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B022C#FFFFFF#000000##FFFFFF
##1B022C1.0019.241.0919.24
#FFFFFF19.241.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#000F2B
Tritanopia (blue-blind)
#180B16
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1b022c;
/* rgb */ color: rgb(27, 2, 44);
/* oklch */ color: oklch(17.7% 0.083 307.8);
Tailwind
colors: {
  custom: {
    50: '#584765',
    500: '#1b022c',
    950: '#000000',
  },
}
SCSS
$custom: #1b022c;
$custom-light: #584765;
$custom-dark: #000000;
JSON
{
  "hex": "#1b022c",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 275.714,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17707,
    "c": 0.083,
    "h": 307.8
  },
  "luminance": 0.00458
}

Semantic roles & 50–950 ramp

primary
#1B022C
secondary
#3D7119
accent
#FF2980
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1B022C

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

Preview Lab → · Contrast checker → · Palette generator →

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