#1B0538#1B0538

#1B0538 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.091 H 296.9°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#1B0538
RGBrgb(27, 5, 56)
HSLhsl(266, 84%, 12%)
HSVhsv(266, 91%, 22%)
CMYKcmyk(51.8%, 91.1%, 0%, 78%)
CIE-LABlab(5.66, 23.68, -27.99)
CIE-LCHlch(5.66, 36.67, 310.24°)
OKLaboklab(19.58% 0.0413 -0.0816)
OKLCHoklch(19.58% 0.091 296.9)
XYZxyz(1.2199, 0.6271, 3.7974)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0538 #223805
analogous
#050938 #1B0538 #350538
triadic
#1B0538 #381B05 #05381B
tetradic
#1B0538 #380509 #223805 #053835
square
#1B0538 #380509 #223805 #053835
split-complementary
#1B0538 #383505 #093805
monochromatic
#0E031C #0E031C #1B0538 #360A70 #510FA8

Accessibility & contrast

On white

18.66
#1B0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0538
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0538#FFFFFF#000000##FFFFFF
##1B05381.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001237
Tritanopia (blue-blind)
#13131E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b0538;
/* rgb */ color: rgb(27, 5, 56);
/* oklch */ color: oklch(19.6% 0.091 296.9);
Tailwind
colors: {
  custom: {
    50: '#5b486f',
    500: '#1b0538',
    950: '#000000',
  },
}
SCSS
$custom: #1b0538;
$custom-light: #5b486f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0538",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 265.882,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19579,
    "c": 0.09144,
    "h": 296.9
  },
  "luminance": 0.00627
}

Semantic roles & 50–950 ramp

primary
#1B0538
secondary
#537920
accent
#FA2EA2
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0538

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

Preview Lab → · Contrast checker → · Palette generator →

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