#1B0C4B#1B0C4B

#1B0C4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.107 H 284.9°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#1B0C4B
RGBrgb(27, 12, 75)
HSLhsl(254, 72%, 17%)
HSVhsv(254, 84%, 29%)
CMYKcmyk(64%, 84%, 0%, 70.6%)
CIE-LABlab(9.02, 26.71, -36.02)
CIE-LCHlch(9.02, 44.84, 306.56°)
OKLaboklab(22.76% 0.0277 -0.1037)
OKLCHoklch(22.76% 0.107 284.9)
XYZxyz(1.8531, 1.0038, 6.7514)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0C4B #3C4B0C
analogous
#0C1C4B #1B0C4B #3B0C4B
triadic
#1B0C4B #4B1B0C #0C4B1B
tetradic
#1B0C4B #4B0C1C #3C4B0C #0C4B3B
square
#1B0C4B #4B0C1C #3C4B0C #0C4B3B
split-complementary
#1B0C4B #4B3B0C #1C4B0C
monochromatic
#09041A #09041A #1B0C4B #2E1480 #411DB5

Accessibility & contrast

On white

17.49
#1B0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0C4B
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0C4B#FFFFFF#000000##FFFFFF
##1B0C4B1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#031E2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1b0c4b;
/* rgb */ color: rgb(27, 12, 75);
/* oklch */ color: oklch(22.8% 0.107 284.9);
Tailwind
colors: {
  custom: {
    50: '#5f4d7e',
    500: '#1b0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #1b0c4b;
$custom-light: #5f4d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0c4b",
  "rgb": {
    "r": 27,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 254.286,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22764,
    "c": 0.10738,
    "h": 284.9
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#1B0C4B
secondary
#71872C
accent
#EF39C4
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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