#1B032A#1B032A

#1B032A is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.078 H 309.3°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#1B032A
RGBrgb(27, 3, 42)
HSLhsl(277, 87%, 9%)
HSVhsv(277, 93%, 16%)
CMYKcmyk(35.7%, 92.9%, 0%, 83.5%)
CIE-LABlab(4.20, 18.79, -19.91)
CIE-LCHlch(4.20, 27.38, 313.35°)
OKLaboklab(17.71% 0.0496 -0.0606)
OKLCHoklch(17.71% 0.078 309.3)
XYZxyz(0.9024, 0.4653, 2.2323)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B032A #122A03
analogous
#08032A #1B032A #2A0326
triadic
#1B032A #2A1B03 #032A1B
tetradic
#1B032A #2A0803 #122A03 #03262A
square
#1B032A #2A0803 #122A03 #03262A
split-complementary
#1B032A #262A03 #032A08
monochromatic
#12021D #12021D #1B032A #400763 #640B9C

Accessibility & contrast

On white

19.21
#1B032A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B032A
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B032A#FFFFFF#000000##FFFFFF
##1B032A1.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000F29
Tritanopia (blue-blind)
#190B15
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1b032a;
/* rgb */ color: rgb(27, 3, 42);
/* oklch */ color: oklch(17.7% 0.078 309.3);
Tailwind
colors: {
  custom: {
    50: '#584764',
    500: '#1b032a',
    950: '#000000',
  },
}
SCSS
$custom: #1b032a;
$custom-light: #584764;
$custom-dark: #000000;
JSON
{
  "hex": "#1b032a",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 42
  },
  "hsl": {
    "h": 276.923,
    "s": 86.667,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17712,
    "c": 0.07833,
    "h": 309.3
  },
  "luminance": 0.00465
}

Semantic roles & 50–950 ramp

primary
#1B032A
secondary
#3B6E1B
accent
#FD2B7C
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #1B032A

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

Preview Lab → · Contrast checker → · Palette generator →

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