#1B0546#1B0546

#1B0546 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.109 H 289.0°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#1B0546
RGBrgb(27, 5, 70)
HSLhsl(260, 87%, 15%)
HSVhsv(260, 93%, 27%)
CMYKcmyk(61.4%, 92.9%, 0%, 72.5%)
CIE-LABlab(7.08, 28.97, -35.72)
CIE-LCHlch(7.08, 45.99, 309.04°)
OKLaboklab(21.21% 0.0354 -0.103)
OKLCHoklch(21.21% 0.109 289)
XYZxyz(1.6114, 0.7837, 5.8595)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0546 #304605
analogous
#050F46 #1B0546 #3C0546
triadic
#1B0546 #461B05 #05461B
tetradic
#1B0546 #46050F #304605 #05463C
square
#1B0546 #46050F #304605 #05463C
split-complementary
#1B0546 #463C05 #0F4605
monochromatic
#0B021D #0B021D #1B0546 #31097F #470DB8

Accessibility & contrast

On white

18.15
#1B0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1B0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0546
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0546#FFFFFF#000000##FFFFFF
##1B05461.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#091926
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1b0546;
/* rgb */ color: rgb(27, 5, 70);
/* oklch */ color: oklch(21.2% 0.109 289.0);
Tailwind
colors: {
  custom: {
    50: '#5e487a',
    500: '#1b0546',
    950: '#000000',
  },
}
SCSS
$custom: #1b0546;
$custom-light: #5e487a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0546",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 260.308,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21213,
    "c": 0.10889,
    "h": 289
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#1B0546
secondary
#648621
accent
#FD2BB6
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0546

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

Preview Lab → · Contrast checker → · Palette generator →

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