#1B0537#1B0537

#1B0537 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.5% C 0.090 H 297.6°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#1B0537
RGBrgb(27, 5, 55)
HSLhsl(266, 83%, 12%)
HSVhsv(266, 91%, 22%)
CMYKcmyk(50.9%, 90.9%, 0%, 78.4%)
CIE-LABlab(5.58, 23.28, -27.40)
CIE-LCHlch(5.58, 35.96, 310.35°)
OKLaboklab(19.47% 0.0417 -0.0799)
OKLCHoklch(19.47% 0.09 297.6)
XYZxyz(1.1957, 0.6174, 3.6699)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0537 #213705
analogous
#050837 #1B0537 #340537
triadic
#1B0537 #371B05 #05371B
tetradic
#1B0537 #370508 #213705 #053734
square
#1B0537 #370508 #213705 #053734
split-complementary
#1B0537 #373405 #083705
monochromatic
#0E031C #0E031C #1B0537 #370A6F #520FA7

Accessibility & contrast

On white

18.69
#1B0537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0537
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0537#FFFFFF#000000##FFFFFF
##1B05371.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001238
Deuteranopia (green-blind)
#001236
Tritanopia (blue-blind)
#14121E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b0537;
/* rgb */ color: rgb(27, 5, 55);
/* oklch */ color: oklch(19.5% 0.090 297.6);
Tailwind
colors: {
  custom: {
    50: '#5b486e',
    500: '#1b0537',
    950: '#000000',
  },
}
SCSS
$custom: #1b0537;
$custom-light: #5b486e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0537",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 266.4,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19468,
    "c": 0.09018,
    "h": 297.6
  },
  "luminance": 0.00617
}

Semantic roles & 50–950 ramp

primary
#1B0537
secondary
#517820
accent
#FA2EA0
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0537

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

Preview Lab → · Contrast checker → · Palette generator →

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