#1B0339#1B0339

#1B0339 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.096 H 297.0°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#1B0339
RGBrgb(27, 3, 57)
HSLhsl(267, 90%, 12%)
HSVhsv(267, 95%, 22%)
CMYKcmyk(52.6%, 94.7%, 0%, 77.6%)
CIE-LABlab(5.36, 25.09, -29.21)
CIE-LCHlch(5.36, 38.51, 310.66°)
OKLaboklab(19.35% 0.0437 -0.0855)
OKLCHoklch(19.35% 0.096 297)
XYZxyz(1.2229, 0.5935, 3.9202)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0339 #213903
analogous
#030639 #1B0339 #360339
triadic
#1B0339 #391B03 #03391B
tetradic
#1B0339 #390306 #213903 #033936
square
#1B0339 #390306 #213903 #033936
split-complementary
#1B0339 #393603 #063903
monochromatic
#0E021D #0E021D #1B0339 #370673 #5209AD

Accessibility & contrast

On white

18.77
#1B0339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1B0339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0339
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0339#FFFFFF#000000##FFFFFF
##1B03391.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123A
Deuteranopia (green-blind)
#001138
Tritanopia (blue-blind)
#13121E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b0339;
/* rgb */ color: rgb(27, 3, 57);
/* oklch */ color: oklch(19.3% 0.096 297.0);
Tailwind
colors: {
  custom: {
    50: '#5b4770',
    500: '#1b0339',
    950: '#000000',
  },
}
SCSS
$custom: #1b0339;
$custom-light: #5b4770;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0339",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 266.667,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19346,
    "c": 0.09602,
    "h": 297
  },
  "luminance": 0.00594
}

Semantic roles & 50–950 ramp

primary
#1B0339
secondary
#517C1C
accent
#FF29A0
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0339

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

Preview Lab → · Contrast checker → · Palette generator →

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