#1B0638#1B0638

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

Color values

HEX#1B0638
RGBrgb(27, 6, 56)
HSLhsl(265, 81%, 12%)
HSVhsv(265, 89%, 22%)
CMYKcmyk(51.8%, 89.3%, 0%, 78%)
CIE-LABlab(5.86, 23.18, -27.67)
CIE-LCHlch(5.86, 36.10, 309.95°)
OKLaboklab(19.75% 0.04 -0.0804)
OKLCHoklch(19.75% 0.09 296.5)
XYZxyz(1.2307, 0.6488, 3.8010)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0638 #233806
analogous
#060A38 #1B0638 #340638
triadic
#1B0638 #381B06 #06381B
tetradic
#1B0638 #38060A #233806 #063834
square
#1B0638 #38060A #233806 #063834
split-complementary
#1B0638 #383406 #0A3806
monochromatic
#0D031C #0D031C #1B0638 #360C6F #5012A7

Accessibility & contrast

On white

18.59
#1B0638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0638
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0638#FFFFFF#000000##FFFFFF
##1B06381.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b0638;
/* rgb */ color: rgb(27, 6, 56);
/* oklch */ color: oklch(19.7% 0.090 296.5);
Tailwind
colors: {
  custom: {
    50: '#5b486f',
    500: '#1b0638',
    950: '#000000',
  },
}
SCSS
$custom: #1b0638;
$custom-light: #5b486f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0638",
  "rgb": {
    "r": 27,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 265.2,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19749,
    "c": 0.08981,
    "h": 296.5
  },
  "luminance": 0.00649
}

Semantic roles & 50–950 ramp

primary
#1B0638
secondary
#547821
accent
#F731A4
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0638

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

Preview Lab → · Contrast checker → · Palette generator →

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