#1B0942#1B0942

#1B0942 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.099 H 289.7°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#1B0942
RGBrgb(27, 9, 66)
HSLhsl(259, 76%, 15%)
HSVhsv(259, 86%, 26%)
CMYKcmyk(59.1%, 86.4%, 0%, 74.1%)
CIE-LABlab(7.42, 25.37, -32.32)
CIE-LCHlch(7.42, 41.09, 308.12°)
OKLaboklab(21.33% 0.0332 -0.093)
OKLCHoklch(21.33% 0.099 289.7)
XYZxyz(1.5328, 0.8217, 5.2310)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0942 #304209
analogous
#091442 #1B0942 #380942
triadic
#1B0942 #421B09 #09421B
tetradic
#1B0942 #420914 #304209 #094238
square
#1B0942 #420914 #304209 #094238
split-complementary
#1B0942 #423809 #144209
monochromatic
#0B041B #0B041B #1B0942 #311078 #4718AE

Accessibility & contrast

On white

18.04
#1B0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0942
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0942#FFFFFF#000000##FFFFFF
##1B09421.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#0C1925
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1b0942;
/* rgb */ color: rgb(27, 9, 66);
/* oklch */ color: oklch(21.3% 0.099 289.7);
Tailwind
colors: {
  custom: {
    50: '#5d4a77',
    500: '#1b0942',
    950: '#000000',
  },
}
SCSS
$custom: #1b0942;
$custom-light: #5d4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0942",
  "rgb": {
    "r": 27,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 258.947,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21325,
    "c": 0.09875,
    "h": 289.7
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#1B0942
secondary
#648027
accent
#F335B7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1B0942

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

Preview Lab → · Contrast checker → · Palette generator →

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