#1B0642#1B0642

#1B0642 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.103 H 290.6°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#1B0642
RGBrgb(27, 6, 66)
HSLhsl(261, 83%, 14%)
HSVhsv(261, 91%, 26%)
CMYKcmyk(59.1%, 90.9%, 0%, 74.1%)
CIE-LABlab(6.83, 27.00, -33.29)
CIE-LCHlch(6.83, 42.86, 309.05°)
OKLaboklab(20.88% 0.0362 -0.096)
OKLCHoklch(20.88% 0.103 290.6)
XYZxyz(1.5002, 0.7565, 5.2202)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0642 #2D4206
analogous
#060F42 #1B0642 #390642
triadic
#1B0642 #421B06 #06421B
tetradic
#1B0642 #42060F #2D4206 #064239
square
#1B0642 #42060F #2D4206 #064239
split-complementary
#1B0642 #423906 #0F4206
monochromatic
#0B031C #0B031C #1B0642 #320B7A #4910B2

Accessibility & contrast

On white

18.24
#1B0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1B0642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0642
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0642#FFFFFF#000000##FFFFFF
##1B06421.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#0D1824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1b0642;
/* rgb */ color: rgb(27, 6, 66);
/* oklch */ color: oklch(20.9% 0.103 290.6);
Tailwind
colors: {
  custom: {
    50: '#5d4977',
    500: '#1b0642',
    950: '#000000',
  },
}
SCSS
$custom: #1b0642;
$custom-light: #5d4977;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0642",
  "rgb": {
    "r": 27,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 261,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20883,
    "c": 0.1026,
    "h": 290.6
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#1B0642
secondary
#608222
accent
#FA2EB2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0642

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

Preview Lab → · Contrast checker → · Palette generator →

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