#1B022B#1B022B

#1B022B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.6% C 0.082 H 308.8°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#1B022B
RGBrgb(27, 2, 43)
HSLhsl(277, 91%, 9%)
HSVhsv(277, 95%, 17%)
CMYKcmyk(37.2%, 95.3%, 0%, 83.1%)
CIE-LABlab(4.07, 19.64, -20.87)
CIE-LCHlch(4.07, 28.66, 313.26°)
OKLaboklab(17.6% 0.0513 -0.0638)
OKLCHoklch(17.6% 0.082 308.8)
XYZxyz(0.9097, 0.4509, 2.3241)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B022B #122B02
analogous
#07022B #1B022B #2B0227
triadic
#1B022B #2B1B02 #022B1B
tetradic
#1B022B #2B0702 #122B02 #02272B
square
#1B022B #2B0702 #122B02 #02272B
split-complementary
#1B022B #272B02 #022B07
monochromatic
#12011D #12011D #1B022B #400565 #6407A0

Accessibility & contrast

On white

19.26
#1B022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B022B
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B022B#FFFFFF#000000##FFFFFF
##1B022B1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#000F2A
Tritanopia (blue-blind)
#180B16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1b022b;
/* rgb */ color: rgb(27, 2, 43);
/* oklch */ color: oklch(17.6% 0.082 308.8);
Tailwind
colors: {
  custom: {
    50: '#584764',
    500: '#1b022b',
    950: '#000000',
  },
}
SCSS
$custom: #1b022b;
$custom-light: #584764;
$custom-dark: #000000;
JSON
{
  "hex": "#1b022b",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 276.585,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17602,
    "c": 0.08188,
    "h": 308.8
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#1B022B
secondary
#3B7019
accent
#FF297C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1B022B

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

Preview Lab → · Contrast checker → · Palette generator →

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