#1B0D4C#1B0D4C

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

Color values

HEX#1B0D4C
RGBrgb(27, 13, 76)
HSLhsl(253, 71%, 17%)
HSVhsv(253, 83%, 30%)
CMYKcmyk(64.5%, 82.9%, 0%, 70.2%)
CIE-LABlab(9.34, 26.47, -36.19)
CIE-LCHlch(9.34, 44.84, 306.18°)
OKLaboklab(23.02% 0.0266 -0.1043)
OKLCHoklch(23.02% 0.108 284.3)
XYZxyz(1.9000, 1.0425, 6.9372)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0D4C #3E4C0D
analogous
#0D1F4C #1B0D4C #3A0D4C
triadic
#1B0D4C #4C1B0D #0D4C1B
tetradic
#1B0D4C #4C0D1F #3E4C0D #0D4C3A
square
#1B0D4C #4C0D1F #3E4C0D #0D4C3A
split-complementary
#1B0D4C #4C3A0D #1F4C0D
monochromatic
#09041A #09041A #1B0D4C #2E1680 #401FB5

Accessibility & contrast

On white

17.38
#1B0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0D4C
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0D4C#FFFFFF#000000##FFFFFF
##1B0D4C1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b0d4c;
/* rgb */ color: rgb(27, 13, 76);
/* oklch */ color: oklch(23.0% 0.108 284.3);
Tailwind
colors: {
  custom: {
    50: '#5f4d7f',
    500: '#1b0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #1b0d4c;
$custom-light: #5f4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0d4c",
  "rgb": {
    "r": 27,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 253.333,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23021,
    "c": 0.10759,
    "h": 284.3
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#1B0D4C
secondary
#73872E
accent
#EE3AC6
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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