#1B0440#1B0440

#1B0440 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.103 H 292.4°. Best body text is #FFFFFF at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#1B0440
RGBrgb(27, 4, 64)
HSLhsl(263, 88%, 13%)
HSVhsv(263, 94%, 25%)
CMYKcmyk(57.8%, 93.8%, 0%, 74.9%)
CIE-LABlab(6.23, 27.33, -32.84)
CIE-LCHlch(6.23, 42.73, 309.77°)
OKLaboklab(20.34% 0.0392 -0.0951)
OKLCHoklch(20.34% 0.103 292.4)
XYZxyz(1.4206, 0.6900, 4.9078)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0440 #294004
analogous
#040B40 #1B0440 #390440
triadic
#1B0440 #401B04 #04401B
tetradic
#1B0440 #40040B #294004 #044039
square
#1B0440 #40040B #294004 #044039
split-complementary
#1B0440 #403904 #0B4004
monochromatic
#0C021D #0C021D #1B0440 #33087A #4C0BB3

Accessibility & contrast

On white

18.45
#1B0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1B0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0440
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0440#FFFFFF#000000##FFFFFF
##1B04401.0018.451.1418.45
#FFFFFF18.451.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#0E1623
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1b0440;
/* rgb */ color: rgb(27, 4, 64);
/* oklch */ color: oklch(20.3% 0.103 292.4);
Tailwind
colors: {
  custom: {
    50: '#5d4775',
    500: '#1b0440',
    950: '#000000',
  },
}
SCSS
$custom: #1b0440;
$custom-light: #5d4775;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0440",
  "rgb": {
    "r": 27,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 263,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20338,
    "c": 0.10287,
    "h": 292.4
  },
  "luminance": 0.0069
}

Semantic roles & 50–950 ramp

primary
#1B0440
secondary
#5B811F
accent
#FE29AD
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1B0440

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

Preview Lab → · Contrast checker → · Palette generator →

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