#1B0541#1B0541

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

Color values

HEX#1B0541
RGBrgb(27, 5, 65)
HSLhsl(262, 86%, 14%)
HSVhsv(262, 92%, 25%)
CMYKcmyk(58.5%, 92.3%, 0%, 74.5%)
CIE-LABlab(6.53, 27.17, -33.07)
CIE-LCHlch(6.53, 42.80, 309.41°)
OKLaboklab(20.61% 0.0376 -0.0955)
OKLCHoklch(20.61% 0.103 291.5)
XYZxyz(1.4601, 0.7231, 5.0626)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0541 #2B4105
analogous
#050D41 #1B0541 #390541
triadic
#1B0541 #411B05 #05411B
tetradic
#1B0541 #41050D #2B4105 #054139
square
#1B0541 #41050D #2B4105 #054139
split-complementary
#1B0541 #413905 #0D4105
monochromatic
#0C021C #0C021C #1B0541 #33097A #4A0EB3

Accessibility & contrast

On white

18.35
#1B0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0541
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0541#FFFFFF#000000##FFFFFF
##1B05411.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#0D1723
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1b0541;
/* rgb */ color: rgb(27, 5, 65);
/* oklch */ color: oklch(20.6% 0.103 291.5);
Tailwind
colors: {
  custom: {
    50: '#5d4876',
    500: '#1b0541',
    950: '#000000',
  },
}
SCSS
$custom: #1b0541;
$custom-light: #5d4876;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0541",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 262,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20613,
    "c": 0.10268,
    "h": 291.5
  },
  "luminance": 0.00723
}

Semantic roles & 50–950 ramp

primary
#1B0541
secondary
#5E8120
accent
#FC2CB0
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1B0541

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

Preview Lab → · Contrast checker → · Palette generator →

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