#1B0341#1B0341

#1B0341 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.106 H 292.2°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#1B0341
RGBrgb(27, 3, 65)
HSLhsl(263, 91%, 13%)
HSVhsv(263, 95%, 25%)
CMYKcmyk(58.5%, 95.4%, 0%, 74.5%)
CIE-LABlab(6.14, 28.25, -33.71)
CIE-LCHlch(6.14, 43.98, 309.96°)
OKLaboklab(20.3% 0.0398 -0.0977)
OKLCHoklch(20.3% 0.106 292.2)
XYZxyz(1.4384, 0.6797, 5.0554)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0341 #294103
analogous
#030A41 #1B0341 #3A0341
triadic
#1B0341 #411B03 #03411B
tetradic
#1B0341 #41030A #294103 #03413A
square
#1B0341 #41030A #294103 #03413A
split-complementary
#1B0341 #413A03 #0A4103
monochromatic
#0C011D #0C011D #1B0341 #33067B #4C08B6

Accessibility & contrast

On white

18.49
#1B0341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1B0341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0341
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0341#FFFFFF#000000##FFFFFF
##1B03411.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001443
Deuteranopia (green-blind)
#001240
Tritanopia (blue-blind)
#0E1623
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1b0341;
/* rgb */ color: rgb(27, 3, 65);
/* oklch */ color: oklch(20.3% 0.106 292.2);
Tailwind
colors: {
  custom: {
    50: '#5d4776',
    500: '#1b0341',
    950: '#000000',
  },
}
SCSS
$custom: #1b0341;
$custom-light: #5d4776;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0341",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 65
  },
  "hsl": {
    "h": 263.226,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.203,
    "c": 0.10551,
    "h": 292.2
  },
  "luminance": 0.0068
}

Semantic roles & 50–950 ramp

primary
#1B0341
secondary
#5B831D
accent
#FF29AC
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1B0341

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

Preview Lab → · Contrast checker → · Palette generator →

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