#1B0D4B#1B0D4B

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

Color values

HEX#1B0D4B
RGBrgb(27, 13, 75)
HSLhsl(254, 70%, 17%)
HSVhsv(254, 83%, 29%)
CMYKcmyk(64%, 82.7%, 0%, 70.6%)
CIE-LABlab(9.23, 26.13, -35.68)
CIE-LCHlch(9.23, 44.22, 306.22°)
OKLaboklab(22.91% 0.0269 -0.1028)
OKLCHoklch(22.91% 0.106 284.6)
XYZxyz(1.8655, 1.0287, 6.7555)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0D4B #3D4B0D
analogous
#0D1E4B #1B0D4B #3A0D4B
triadic
#1B0D4B #4B1B0D #0D4B1B
tetradic
#1B0D4B #4B0D1E #3D4B0D #0D4B3A
square
#1B0D4B #4B0D1E #3D4B0D #0D4B3A
split-complementary
#1B0D4B #4B3A0D #1E4B0D
monochromatic
#09051A #09051A #1B0D4B #2E167F #411FB3

Accessibility & contrast

On white

17.42
#1B0D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0D4B
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0D4B#FFFFFF#000000##FFFFFF
##1B0D4B1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b0d4b;
/* rgb */ color: rgb(27, 13, 75);
/* oklch */ color: oklch(22.9% 0.106 284.6);
Tailwind
colors: {
  custom: {
    50: '#5f4d7e',
    500: '#1b0d4b',
    950: '#000000',
  },
}
SCSS
$custom: #1b0d4b;
$custom-light: #5f4d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0d4b",
  "rgb": {
    "r": 27,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 253.548,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22908,
    "c": 0.10622,
    "h": 284.6
  },
  "luminance": 0.01029
}

Semantic roles & 50–950 ramp

primary
#1B0D4B
secondary
#72862E
accent
#ED3BC5
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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