#1B0D40#1B0D40

#1B0D40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.091 H 289.1°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#1B0D40
RGBrgb(27, 13, 64)
HSLhsl(256, 66%, 15%)
HSVhsv(256, 80%, 25%)
CMYKcmyk(57.8%, 79.7%, 0%, 74.9%)
CIE-LABlab(8.05, 22.35, -29.88)
CIE-LCHlch(8.05, 37.31, 306.79°)
OKLaboklab(21.71% 0.0298 -0.0858)
OKLCHoklch(21.71% 0.091 289.1)
XYZxyz(1.5211, 0.8910, 4.9413)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0D40 #32400D
analogous
#0D1840 #1B0D40 #350D40
triadic
#1B0D40 #401B0D #0D401B
tetradic
#1B0D40 #400D18 #32400D #0D4035
square
#1B0D40 #400D18 #32400D #0D4035
split-complementary
#1B0D40 #40350D #18400D
monochromatic
#0B0519 #0B0519 #1B0D40 #301773 #4622A6

Accessibility & contrast

On white

17.82
#1B0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1B0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0D40
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0D40#FFFFFF#000000##FFFFFF
##1B0D401.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#0E1A25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1b0d40;
/* rgb */ color: rgb(27, 13, 64);
/* oklch */ color: oklch(21.7% 0.091 289.1);
Tailwind
colors: {
  custom: {
    50: '#5c4d75',
    500: '#1b0d40',
    950: '#000000',
  },
}
SCSS
$custom: #1b0d40;
$custom-light: #5c4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0d40",
  "rgb": {
    "r": 27,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 256.471,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21711,
    "c": 0.09079,
    "h": 289.1
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#1B0D40
secondary
#667C2D
accent
#E93FBA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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