#1B0C4D#1B0C4D

#1B0C4D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.110 H 284.2°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#1B0C4D
RGBrgb(27, 12, 77)
HSLhsl(254, 73%, 17%)
HSVhsv(254, 84%, 30%)
CMYKcmyk(64.9%, 84.4%, 0%, 69.8%)
CIE-LABlab(9.25, 27.39, -37.03)
CIE-LCHlch(9.25, 46.05, 306.49°)
OKLaboklab(22.99% 0.0271 -0.1067)
OKLCHoklch(22.99% 0.11 284.2)
XYZxyz(1.9226, 1.0317, 7.1176)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0C4D #3E4D0C
analogous
#0C1E4D #1B0C4D #3B0C4D
triadic
#1B0C4D #4D1B0C #0C4D1B
tetradic
#1B0C4D #4D0C1E #3E4D0C #0C4D3B
square
#1B0C4D #4D0C1E #3E4D0C #0C4D3B
split-complementary
#1B0C4D #4D3B0C #1E4D0C
monochromatic
#09041A #09041A #1B0C4D #2E1482 #401DB7

Accessibility & contrast

On white

17.41
#1B0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1B0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0C4D
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0C4D#FFFFFF#000000##FFFFFF
##1B0C4D1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00184C
Tritanopia (blue-blind)
#011F2C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1b0c4d;
/* rgb */ color: rgb(27, 12, 77);
/* oklch */ color: oklch(23.0% 0.110 284.2);
Tailwind
colors: {
  custom: {
    50: '#5f4d80',
    500: '#1b0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #1b0c4d;
$custom-light: #5f4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0c4d",
  "rgb": {
    "r": 27,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 253.846,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22994,
    "c": 0.11009,
    "h": 284.2
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#1B0C4D
secondary
#73892C
accent
#F038C5
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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