#1B052B#1B052B

#1B052B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.075 H 307.3°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#1B052B
RGBrgb(27, 5, 43)
HSLhsl(275, 79%, 9%)
HSVhsv(275, 88%, 17%)
CMYKcmyk(37.2%, 88.4%, 0%, 83.1%)
CIE-LABlab(4.66, 18.35, -19.94)
CIE-LCHlch(4.66, 27.10, 312.62°)
OKLaboklab(18.22% 0.0455 -0.0596)
OKLCHoklch(18.22% 0.075 307.3)
XYZxyz(0.9422, 0.5160, 2.3350)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B052B #152B05
analogous
#08052B #1B052B #2B0528
triadic
#1B052B #2B1B05 #052B1B
tetradic
#1B052B #2B0805 #152B05 #05282B
square
#1B052B #2B0805 #152B05 #05282B
split-complementary
#1B052B #282B05 #052B08
monochromatic
#11031B #11031B #1B052B #3D0B62 #601299

Accessibility & contrast

On white

19.04
#1B052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B052B
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B052B#FFFFFF#000000##FFFFFF
##1B052B1.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#180D17
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b052b;
/* rgb */ color: rgb(27, 5, 43);
/* oklch */ color: oklch(18.2% 0.075 307.3);
Tailwind
colors: {
  custom: {
    50: '#584864',
    500: '#1b052b',
    950: '#000000',
  },
}
SCSS
$custom: #1b052b;
$custom-light: #584864;
$custom-dark: #000000;
JSON
{
  "hex": "#1b052b",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 274.737,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.1822,
    "c": 0.075,
    "h": 307.3
  },
  "luminance": 0.00516
}

Semantic roles & 50–950 ramp

primary
#1B052B
secondary
#406D1F
accent
#F63284
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1B052B

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

Preview Lab → · Contrast checker → · Palette generator →

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