#1B0334#1B0334

#1B0334 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.8% C 0.090 H 300.6°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#1B0334
RGBrgb(27, 3, 52)
HSLhsl(269, 89%, 11%)
HSVhsv(269, 94%, 20%)
CMYKcmyk(48.1%, 94.2%, 0%, 79.6%)
CIE-LABlab(4.93, 23.01, -26.24)
CIE-LCHlch(4.93, 34.90, 311.26°)
OKLaboklab(18.78% 0.0459 -0.0775)
OKLCHoklch(18.78% 0.09 300.6)
XYZxyz(1.1042, 0.5461, 3.2954)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0334 #1C3403
analogous
#030334 #1B0334 #330334
triadic
#1B0334 #341B03 #03341B
tetradic
#1B0334 #340303 #1C3403 #033433
square
#1B0334 #340303 #1C3403 #033433
split-complementary
#1B0334 #343303 #033403
monochromatic
#0F021D #0F021D #1B0334 #39066E #570AA8

Accessibility & contrast

On white

18.93
#1B0334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1B0334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0334
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0334#FFFFFF#000000##FFFFFF
##1B03341.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001035
Deuteranopia (green-blind)
#001033
Tritanopia (blue-blind)
#15101B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b0334;
/* rgb */ color: rgb(27, 3, 52);
/* oklch */ color: oklch(18.8% 0.090 300.6);
Tailwind
colors: {
  custom: {
    50: '#5a476c',
    500: '#1b0334',
    950: '#000000',
  },
}
SCSS
$custom: #1b0334;
$custom-light: #5a476c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0334",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 269.388,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18776,
    "c": 0.0901,
    "h": 300.6
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#1B0334
secondary
#4A771C
accent
#FF2996
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0334

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

Preview Lab → · Contrast checker → · Palette generator →

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