#1B012E#1B012E

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

Color values

HEX#1B012E
RGBrgb(27, 1, 46)
HSLhsl(275, 96%, 9%)
HSVhsv(275, 98%, 18%)
CMYKcmyk(41.3%, 97.8%, 0%, 82%)
CIE-LABlab(4.08, 21.36, -23.12)
CIE-LCHlch(4.08, 31.48, 312.73°)
OKLaboklab(17.71% 0.0521 -0.0704)
OKLCHoklch(17.71% 0.088 306.5)
XYZxyz(0.9559, 0.4520, 2.6211)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B012E #142E01
analogous
#05012E #1B012E #2E012B
triadic
#1B012E #2E1B01 #012E1B
tetradic
#1B012E #2E0501 #142E01 #012B2E
square
#1B012E #2E0501 #142E01 #012B2E
split-complementary
#1B012E #2B2E01 #012E05
monochromatic
#12011E #12011E #1B012E #3E026A #6104A6

Accessibility & contrast

On white

19.26
#1B012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B012E
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B012E#FFFFFF#000000##FFFFFF
##1B012E1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2F
Deuteranopia (green-blind)
#000E2D
Tritanopia (blue-blind)
#180B17
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1b012e;
/* rgb */ color: rgb(27, 1, 46);
/* oklch */ color: oklch(17.7% 0.088 306.5);
Tailwind
colors: {
  custom: {
    50: '#594667',
    500: '#1b012e',
    950: '#000000',
  },
}
SCSS
$custom: #1b012e;
$custom-light: #594667;
$custom-dark: #000000;
JSON
{
  "hex": "#1b012e",
  "rgb": {
    "r": 27,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 274.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17713,
    "c": 0.08754,
    "h": 306.5
  },
  "luminance": 0.00452
}

Semantic roles & 50–950 ramp

primary
#1B012E
secondary
#3E7417
accent
#FF2983
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B012E

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

Preview Lab → · Contrast checker → · Palette generator →

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