#1B0946#1B0946

#1B0946 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.104 H 287.8°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#1B0946
RGBrgb(27, 9, 70)
HSLhsl(258, 77%, 15%)
HSVhsv(258, 87%, 27%)
CMYKcmyk(61.4%, 87.1%, 0%, 72.5%)
CIE-LABlab(7.86, 26.73, -34.43)
CIE-LCHlch(7.86, 43.59, 307.83°)
OKLaboklab(21.78% 0.0318 -0.0991)
OKLCHoklch(21.78% 0.104 287.8)
XYZxyz(1.6548, 0.8705, 5.8740)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0946 #344609
analogous
#091546 #1B0946 #390946
triadic
#1B0946 #461B09 #09461B
tetradic
#1B0946 #460915 #344609 #094639
square
#1B0946 #460915 #344609 #094639
split-complementary
#1B0946 #463909 #154609
monochromatic
#0A031B #0A031B #1B0946 #30107C #4517B2

Accessibility & contrast

On white

17.88
#1B0946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1B0946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0946
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0946#FFFFFF#000000##FFFFFF
##1B09461.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#091B27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1b0946;
/* rgb */ color: rgb(27, 9, 70);
/* oklch */ color: oklch(21.8% 0.104 287.8);
Tailwind
colors: {
  custom: {
    50: '#5e4b7a',
    500: '#1b0946',
    950: '#000000',
  },
}
SCSS
$custom: #1b0946;
$custom-light: #5e4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0946",
  "rgb": {
    "r": 27,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 257.705,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2178,
    "c": 0.10407,
    "h": 287.8
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#1B0946
secondary
#688427
accent
#F434BB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0946

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

Preview Lab → · Contrast checker → · Palette generator →

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