#1B022A#1B022A

#1B022A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.5% C 0.081 H 309.8°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#1B022A
RGBrgb(27, 2, 42)
HSLhsl(278, 91%, 9%)
HSVhsv(278, 95%, 16%)
CMYKcmyk(35.7%, 95.2%, 0%, 83.5%)
CIE-LABlab(4.01, 19.21, -20.21)
CIE-LCHlch(4.01, 27.89, 313.54°)
OKLaboklab(17.5% 0.0517 -0.0621)
OKLCHoklch(17.5% 0.081 309.8)
XYZxyz(0.8915, 0.4436, 2.2287)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B022A #112A02
analogous
#07022A #1B022A #2A0225
triadic
#1B022A #2A1B02 #022A1B
tetradic
#1B022A #2A0702 #112A02 #02252A
square
#1B022A #2A0702 #112A02 #02252A
split-complementary
#1B022A #252A02 #022A07
monochromatic
#13011D #13011D #1B022A #410564 #66089F

Accessibility & contrast

On white

19.29
#1B022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B022A
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B022A#FFFFFF#000000##FFFFFF
##1B022A1.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#000E29
Tritanopia (blue-blind)
#190A15
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1b022a;
/* rgb */ color: rgb(27, 2, 42);
/* oklch */ color: oklch(17.5% 0.081 309.8);
Tailwind
colors: {
  custom: {
    50: '#584764',
    500: '#1b022a',
    950: '#000000',
  },
}
SCSS
$custom: #1b022a;
$custom-light: #584764;
$custom-dark: #000000;
JSON
{
  "hex": "#1b022a",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 277.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17498,
    "c": 0.08076,
    "h": 309.8
  },
  "luminance": 0.00444
}

Semantic roles & 50–950 ramp

primary
#1B022A
secondary
#396F19
accent
#FF2979
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #1B022A

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

Preview Lab → · Contrast checker → · Palette generator →

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