#1B0C4C#1B0C4C

#1B0C4C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.109 H 284.6°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#1B0C4C
RGBrgb(27, 12, 76)
HSLhsl(254, 73%, 17%)
HSVhsv(254, 84%, 30%)
CMYKcmyk(64.5%, 84.2%, 0%, 70.2%)
CIE-LABlab(9.14, 27.05, -36.52)
CIE-LCHlch(9.14, 45.45, 306.53°)
OKLaboklab(22.88% 0.0274 -0.1052)
OKLCHoklch(22.88% 0.109 284.6)
XYZxyz(1.8876, 1.0176, 6.9330)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0C4C #3D4C0C
analogous
#0C1D4C #1B0C4C #3B0C4C
triadic
#1B0C4C #4C1B0C #0C4C1B
tetradic
#1B0C4C #4C0C1D #3D4C0C #0C4C3B
square
#1B0C4C #4C0C1D #3D4C0C #0C4C3B
split-complementary
#1B0C4C #4C3B0C #1D4C0C
monochromatic
#09041A #09041A #1B0C4C #2E1481 #411DB6

Accessibility & contrast

On white

17.45
#1B0C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1B0C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0C4C
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0C4C#FFFFFF#000000##FFFFFF
##1B0C4C1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00184B
Tritanopia (blue-blind)
#021E2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1b0c4c;
/* rgb */ color: rgb(27, 12, 76);
/* oklch */ color: oklch(22.9% 0.109 284.6);
Tailwind
colors: {
  custom: {
    50: '#5f4d7f',
    500: '#1b0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #1b0c4c;
$custom-light: #5f4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0c4c",
  "rgb": {
    "r": 27,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 254.063,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22879,
    "c": 0.10873,
    "h": 284.6
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#1B0C4C
secondary
#72882C
accent
#EF38C5
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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