#1B012B#1B012B

#1B012B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.4% C 0.084 H 309.3°. Best body text is #FFFFFF at 19.34:1 contrast (WCAG AA passes).

Color values

HEX#1B012B
RGBrgb(27, 1, 43)
HSLhsl(277, 95%, 9%)
HSVhsv(277, 98%, 17%)
CMYKcmyk(37.2%, 97.7%, 0%, 83.1%)
CIE-LABlab(3.88, 20.06, -21.18)
CIE-LCHlch(3.88, 29.17, 313.44°)
OKLaboklab(17.39% 0.0534 -0.0653)
OKLCHoklch(17.39% 0.084 309.3)
XYZxyz(0.8988, 0.4292, 2.3205)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B012B #112B01
analogous
#06012B #1B012B #2B0126
triadic
#1B012B #2B1B01 #012B1B
tetradic
#1B012B #2B0601 #112B01 #01262B
square
#1B012B #2B0601 #112B01 #01262B
split-complementary
#1B012B #262B01 #012B06
monochromatic
#13011E #13011E #1B012B #410267 #6604A3

Accessibility & contrast

On white

19.34
#1B012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B012B
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B012B#FFFFFF#000000##FFFFFF
##1B012B1.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b012b;
/* rgb */ color: rgb(27, 1, 43);
/* oklch */ color: oklch(17.4% 0.084 309.3);
Tailwind
colors: {
  custom: {
    50: '#584664',
    500: '#1b012b',
    950: '#000000',
  },
}
SCSS
$custom: #1b012b;
$custom-light: #584664;
$custom-dark: #000000;
JSON
{
  "hex": "#1b012b",
  "rgb": {
    "r": 27,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 277.143,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17386,
    "c": 0.08435,
    "h": 309.3
  },
  "luminance": 0.00429
}

Semantic roles & 50–950 ramp

primary
#1B012B
secondary
#397117
accent
#FF297A
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1B012B

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

Preview Lab → · Contrast checker → · Palette generator →

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