#1B022E#1B022E

#1B022E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.9% C 0.085 H 306.0°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#1B022E
RGBrgb(27, 2, 46)
HSLhsl(274, 92%, 9%)
HSVhsv(274, 96%, 18%)
CMYKcmyk(41.3%, 95.7%, 0%, 82%)
CIE-LABlab(4.28, 20.92, -22.81)
CIE-LCHlch(4.28, 30.95, 312.53°)
OKLaboklab(17.92% 0.0501 -0.0689)
OKLCHoklch(17.92% 0.085 306)
XYZxyz(0.9667, 0.4737, 2.6247)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B022E #152E02
analogous
#05022E #1B022E #2E022B
triadic
#1B022E #2E1B02 #022E1B
tetradic
#1B022E #2E0502 #152E02 #022B2E
square
#1B022E #2E0502 #152E02 #022B2E
split-complementary
#1B022E #2B2E02 #022E05
monochromatic
#11011D #11011D #1B022E #3D0569 #6007A3

Accessibility & contrast

On white

19.18
#1B022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B022E
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B022E#FFFFFF#000000##FFFFFF
##1B022E1.0019.181.0919.18
#FFFFFF19.181.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#170C17
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1b022e;
/* rgb */ color: rgb(27, 2, 46);
/* oklch */ color: oklch(17.9% 0.085 306.0);
Tailwind
colors: {
  custom: {
    50: '#594767',
    500: '#1b022e',
    950: '#000000',
  },
}
SCSS
$custom: #1b022e;
$custom-light: #594767;
$custom-dark: #000000;
JSON
{
  "hex": "#1b022e",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 274.091,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.17921,
    "c": 0.08525,
    "h": 306
  },
  "luminance": 0.00474
}

Semantic roles & 50–950 ramp

primary
#1B022E
secondary
#407319
accent
#FF2985
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B022E

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

Preview Lab → · Contrast checker → · Palette generator →

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