#1B0535#1B0535

#1B0535 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.088 H 299.0°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#1B0535
RGBrgb(27, 5, 53)
HSLhsl(268, 83%, 11%)
HSVhsv(268, 91%, 21%)
CMYKcmyk(49.1%, 90.6%, 0%, 79.2%)
CIE-LABlab(5.41, 22.47, -26.21)
CIE-LCHlch(5.41, 34.52, 310.61°)
OKLaboklab(19.25% 0.0425 -0.0767)
OKLCHoklch(19.25% 0.088 299)
XYZxyz(1.1487, 0.5986, 3.4225)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0535 #1F3505
analogous
#050735 #1B0535 #330535
triadic
#1B0535 #351B05 #05351B
tetradic
#1B0535 #350507 #1F3505 #053533
square
#1B0535 #350507 #1F3505 #053533
split-complementary
#1B0535 #353305 #073505
monochromatic
#0E031C #0E031C #1B0535 #370A6D #5410A5

Accessibility & contrast

On white

18.75
#1B0535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0535
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0535#FFFFFF#000000##FFFFFF
##1B05351.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001236
Deuteranopia (green-blind)
#001134
Tritanopia (blue-blind)
#15111C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b0535;
/* rgb */ color: rgb(27, 5, 53);
/* oklch */ color: oklch(19.2% 0.088 299.0);
Tailwind
colors: {
  custom: {
    50: '#5a486d',
    500: '#1b0535',
    950: '#000000',
  },
}
SCSS
$custom: #1b0535;
$custom-light: #5a486d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0535",
  "rgb": {
    "r": 27,
    "g": 5,
    "b": 53
  },
  "hsl": {
    "h": 267.5,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19249,
    "c": 0.08765,
    "h": 299
  },
  "luminance": 0.00599
}

Semantic roles & 50–950 ramp

primary
#1B0535
secondary
#4F7620
accent
#F92F9C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0535

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

Preview Lab → · Contrast checker → · Palette generator →

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