#1B0340#1B0340

#1B0340 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.104 H 292.7°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#1B0340
RGBrgb(27, 3, 64)
HSLhsl(264, 91%, 13%)
HSVhsv(264, 95%, 25%)
CMYKcmyk(57.8%, 95.3%, 0%, 74.9%)
CIE-LABlab(6.04, 27.87, -33.17)
CIE-LCHlch(6.04, 43.32, 310.04°)
OKLaboklab(20.18% 0.0403 -0.0962)
OKLCHoklch(20.18% 0.104 292.7)
XYZxyz(1.4097, 0.6682, 4.9042)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0340 #284003
analogous
#030940 #1B0340 #390340
triadic
#1B0340 #401B03 #03401B
tetradic
#1B0340 #400309 #284003 #034039
square
#1B0340 #400309 #284003 #034039
split-complementary
#1B0340 #403903 #094003
monochromatic
#0C011D #0C011D #1B0340 #34067A #4C08B5

Accessibility & contrast

On white

18.53
#1B0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1B0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0340
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0340#FFFFFF#000000##FFFFFF
##1B03401.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#0E1522
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1b0340;
/* rgb */ color: rgb(27, 3, 64);
/* oklch */ color: oklch(20.2% 0.104 292.7);
Tailwind
colors: {
  custom: {
    50: '#5d4776',
    500: '#1b0340',
    950: '#000000',
  },
}
SCSS
$custom: #1b0340;
$custom-light: #5d4776;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0340",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 263.607,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20178,
    "c": 0.10432,
    "h": 292.7
  },
  "luminance": 0.00668
}

Semantic roles & 50–950 ramp

primary
#1B0340
secondary
#5A821D
accent
#FF29AB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1B0340

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

Preview Lab → · Contrast checker → · Palette generator →

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