#1B0640#1B0640

#1B0640 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.100 H 291.7°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#1B0640
RGBrgb(27, 6, 64)
HSLhsl(262, 83%, 14%)
HSVhsv(262, 91%, 25%)
CMYKcmyk(57.8%, 90.6%, 0%, 74.9%)
CIE-LABlab(6.62, 26.27, -32.20)
CIE-LCHlch(6.62, 41.56, 309.20°)
OKLaboklab(20.65% 0.037 -0.093)
OKLCHoklch(20.65% 0.1 291.7)
XYZxyz(1.4423, 0.7334, 4.9151)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0640 #2B4006
analogous
#060E40 #1B0640 #380640
triadic
#1B0640 #401B06 #06401B
tetradic
#1B0640 #40060E #2B4006 #064038
square
#1B0640 #40060E #2B4006 #064038
split-complementary
#1B0640 #403806 #0E4006
monochromatic
#0C031C #0C031C #1B0640 #330B78 #4A10B0

Accessibility & contrast

On white

18.32
#1B0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1B0640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0640
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0640#FFFFFF#000000##FFFFFF
##1B06401.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#0E1723
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1b0640;
/* rgb */ color: rgb(27, 6, 64);
/* oklch */ color: oklch(20.6% 0.100 291.7);
Tailwind
colors: {
  custom: {
    50: '#5d4975',
    500: '#1b0640',
    950: '#000000',
  },
}
SCSS
$custom: #1b0640;
$custom-light: #5d4975;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0640",
  "rgb": {
    "r": 27,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 261.724,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2065,
    "c": 0.10006,
    "h": 291.7
  },
  "luminance": 0.00733
}

Semantic roles & 50–950 ramp

primary
#1B0640
secondary
#5E8022
accent
#F92FB0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B0640

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

Preview Lab → · Contrast checker → · Palette generator →

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