#1B0540#1B0540

#1B0540 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.101 H 292.0°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#1B0540
RGBrgb(27, 5, 64)
HSLhsl(262, 86%, 14%)
HSVhsv(262, 92%, 25%)
CMYKcmyk(57.8%, 92.2%, 0%, 74.9%)
CIE-LABlab(6.43, 26.80, -32.52)
CIE-LCHlch(6.43, 42.14, 309.49°)
OKLaboklab(20.5% 0.0381 -0.094)
OKLCHoklch(20.5% 0.101 292)
XYZxyz(1.4314, 0.7117, 4.9114)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0540 #2A4005
analogous
#050C40 #1B0540 #380540
triadic
#1B0540 #401B05 #05401B
tetradic
#1B0540 #40050C #2A4005 #054038
square
#1B0540 #40050C #2A4005 #054038
split-complementary
#1B0540 #403805 #0C4005
monochromatic
#0C021C #0C021C #1B0540 #330979 #4B0EB2

Accessibility & contrast

On white

18.38
#1B0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0540
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0540#FFFFFF#000000##FFFFFF
##1B05401.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.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: #1b0540;
/* rgb */ color: rgb(27, 5, 64);
/* oklch */ color: oklch(20.5% 0.101 292.0);
Tailwind
colors: {
  custom: {
    50: '#5d4875',
    500: '#1b0540',
    950: '#000000',
  },
}
SCSS
$custom: #1b0540;
$custom-light: #5d4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0540",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 262.373,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20495,
    "c": 0.10144,
    "h": 292
  },
  "luminance": 0.00712
}

Semantic roles & 50–950 ramp

primary
#1B0540
secondary
#5D8120
accent
#FC2CAE
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1B0540

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

Preview Lab → · Contrast checker → · Palette generator →

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