#1B012A#1B012A

#1B012A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.3% C 0.083 H 310.3°. Best body text is #FFFFFF at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#1B012A
RGBrgb(27, 1, 42)
HSLhsl(278, 95%, 8%)
HSVhsv(278, 98%, 16%)
CMYKcmyk(35.7%, 97.6%, 0%, 83.5%)
CIE-LABlab(3.81, 19.63, -20.52)
CIE-LCHlch(3.81, 28.40, 313.72°)
OKLaboklab(17.28% 0.0538 -0.0636)
OKLCHoklch(17.28% 0.083 310.3)
XYZxyz(0.8807, 0.4219, 2.2251)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B012A #102A01
analogous
#06012A #1B012A #2A0124
triadic
#1B012A #2A1B01 #012A1B
tetradic
#1B012A #2A0601 #102A01 #01242A
square
#1B012A #2A0601 #102A01 #01242A
split-complementary
#1B012A #242A01 #012A06
monochromatic
#13011E #13011E #1B012A #410266 #6804A2

Accessibility & contrast

On white

19.37
#1B012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#1B012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B012A
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B012A#FFFFFF#000000##FFFFFF
##1B012A1.0019.371.0819.37
#FFFFFF19.371.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2B
Deuteranopia (green-blind)
#000E29
Tritanopia (blue-blind)
#190915
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1b012a;
/* rgb */ color: rgb(27, 1, 42);
/* oklch */ color: oklch(17.3% 0.083 310.3);
Tailwind
colors: {
  custom: {
    50: '#584664',
    500: '#1b012a',
    950: '#000000',
  },
}
SCSS
$custom: #1b012a;
$custom-light: #584664;
$custom-dark: #000000;
JSON
{
  "hex": "#1b012a",
  "rgb": {
    "r": 27,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 278.049,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.1728,
    "c": 0.08329,
    "h": 310.3
  },
  "luminance": 0.00422
}

Semantic roles & 50–950 ramp

primary
#1B012A
secondary
#377016
accent
#FF2977
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#030005
muted
#787779

Preview Lab

Preview with #1B012A

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

Preview Lab → · Contrast checker → · Palette generator →

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