#1B0C4A#1B0C4A

#1B0C4A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.106 H 285.3°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#1B0C4A
RGBrgb(27, 12, 74)
HSLhsl(255, 72%, 17%)
HSVhsv(255, 84%, 29%)
CMYKcmyk(63.5%, 83.8%, 0%, 71%)
CIE-LABlab(8.91, 26.37, -35.51)
CIE-LCHlch(8.91, 44.23, 306.60°)
OKLaboklab(22.65% 0.028 -0.1023)
OKLCHoklch(22.65% 0.106 285.3)
XYZxyz(1.8191, 0.9903, 6.5725)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0C4A #3B4A0C
analogous
#0C1C4A #1B0C4A #3A0C4A
triadic
#1B0C4A #4A1B0C #0C4A1B
tetradic
#1B0C4A #4A0C1C #3B4A0C #0C4A3A
square
#1B0C4A #4A0C1C #3B4A0C #0C4A3A
split-complementary
#1B0C4A #4A3A0C #1C4A0C
monochromatic
#0A041A #0A041A #1B0C4A #2E157F #411DB3

Accessibility & contrast

On white

17.53
#1B0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0C4A
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0C4A#FFFFFF#000000##FFFFFF
##1B0C4A1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001749
Tritanopia (blue-blind)
#041E2A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1b0c4a;
/* rgb */ color: rgb(27, 12, 74);
/* oklch */ color: oklch(22.7% 0.106 285.3);
Tailwind
colors: {
  custom: {
    50: '#5e4d7d',
    500: '#1b0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #1b0c4a;
$custom-light: #5e4d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0c4a",
  "rgb": {
    "r": 27,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 254.516,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.2265,
    "c": 0.10602,
    "h": 285.3
  },
  "luminance": 0.0099
}

Semantic roles & 50–950 ramp

primary
#1B0C4A
secondary
#70862C
accent
#EF39C3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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