#1B022F#1B022F

#1B022F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.086 H 305.1°. Best body text is #FFFFFF at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#1B022F
RGBrgb(27, 2, 47)
HSLhsl(273, 92%, 10%)
HSVhsv(273, 96%, 18%)
CMYKcmyk(42.6%, 95.7%, 0%, 81.6%)
CIE-LABlab(4.35, 21.35, -23.45)
CIE-LCHlch(4.35, 31.71, 312.32°)
OKLaboklab(18.03% 0.0497 -0.0706)
OKLCHoklch(18.03% 0.086 305.1)
XYZxyz(0.9867, 0.4817, 2.7298)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B022F #162F02
analogous
#04022F #1B022F #2F022D
triadic
#1B022F #2F1B02 #022F1B
tetradic
#1B022F #2F0402 #162F02 #022D2F
square
#1B022F #2F0402 #162F02 #022D2F
split-complementary
#1B022F #2D2F02 #022F04
monochromatic
#11011D #11011D #1B022F #3D046A #5E07A4

Accessibility & contrast

On white

19.15
#1B022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1B022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B022F
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B022F#FFFFFF#000000##FFFFFF
##1B022F1.0019.151.1019.15
#FFFFFF19.151.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000F2E
Tritanopia (blue-blind)
#170D18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1b022f;
/* rgb */ color: rgb(27, 2, 47);
/* oklch */ color: oklch(18.0% 0.086 305.1);
Tailwind
colors: {
  custom: {
    50: '#594768',
    500: '#1b022f',
    950: '#000000',
  },
}
SCSS
$custom: #1b022f;
$custom-light: #594768;
$custom-dark: #000000;
JSON
{
  "hex": "#1b022f",
  "rgb": {
    "r": 27,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 273.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18029,
    "c": 0.08637,
    "h": 305.1
  },
  "luminance": 0.00482
}

Semantic roles & 50–950 ramp

primary
#1B022F
secondary
#417419
accent
#FF2988
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B022F

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

Preview Lab → · Contrast checker → · Palette generator →

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