#1B0940#1B0940

#1B0940 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.096 H 290.7°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#1B0940
RGBrgb(27, 9, 64)
HSLhsl(260, 75%, 14%)
HSVhsv(260, 86%, 25%)
CMYKcmyk(57.8%, 85.9%, 0%, 74.9%)
CIE-LABlab(7.21, 24.66, -31.24)
CIE-LCHlch(7.21, 39.80, 308.28°)
OKLaboklab(21.1% 0.0339 -0.0899)
OKLCHoklch(21.1% 0.096 290.7)
XYZxyz(1.4748, 0.7985, 4.9259)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0940 #2E4009
analogous
#091340 #1B0940 #370940
triadic
#1B0940 #401B09 #09401B
tetradic
#1B0940 #400913 #2E4009 #094037
square
#1B0940 #400913 #2E4009 #094037
split-complementary
#1B0940 #403709 #134009
monochromatic
#0B041B #0B041B #1B0940 #321176 #4818AB

Accessibility & contrast

On white

18.11
#1B0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0940
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0940#FFFFFF#000000##FFFFFF
##1B09401.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#0E1824
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1b0940;
/* rgb */ color: rgb(27, 9, 64);
/* oklch */ color: oklch(21.1% 0.096 290.7);
Tailwind
colors: {
  custom: {
    50: '#5c4a75',
    500: '#1b0940',
    950: '#000000',
  },
}
SCSS
$custom: #1b0940;
$custom-light: #5c4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0940",
  "rgb": {
    "r": 27,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 259.636,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21102,
    "c": 0.09606,
    "h": 290.7
  },
  "luminance": 0.00799
}

Semantic roles & 50–950 ramp

primary
#1B0940
secondary
#617E27
accent
#F236B4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B0940

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

Preview Lab → · Contrast checker → · Palette generator →

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