#1B0740#1B0740

#1B0740 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.099 H 291.3°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#1B0740
RGBrgb(27, 7, 64)
HSLhsl(261, 80%, 14%)
HSVhsv(261, 89%, 25%)
CMYKcmyk(57.8%, 89.1%, 0%, 74.9%)
CIE-LABlab(6.82, 25.73, -31.88)
CIE-LCHlch(6.82, 40.97, 308.90°)
OKLaboklab(20.8% 0.0359 -0.0919)
OKLCHoklch(20.8% 0.099 291.3)
XYZxyz(1.4531, 0.7551, 4.9187)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0740 #2C4007
analogous
#071040 #1B0740 #380740
triadic
#1B0740 #401B07 #07401B
tetradic
#1B0740 #400710 #2C4007 #074038
square
#1B0740 #400710 #2C4007 #074038
split-complementary
#1B0740 #403807 #104007
monochromatic
#0C031C #0C031C #1B0740 #320D77 #4A13AE

Accessibility & contrast

On white

18.25
#1B0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0740
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0740#FFFFFF#000000##FFFFFF
##1B07401.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b0740;
/* rgb */ color: rgb(27, 7, 64);
/* oklch */ color: oklch(20.8% 0.099 291.3);
Tailwind
colors: {
  custom: {
    50: '#5d4975',
    500: '#1b0740',
    950: '#000000',
  },
}
SCSS
$custom: #1b0740;
$custom-light: #5d4975;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0740",
  "rgb": {
    "r": 27,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 261.053,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20803,
    "c": 0.09869,
    "h": 291.3
  },
  "luminance": 0.00755
}

Semantic roles & 50–950 ramp

primary
#1B0740
secondary
#5F7F24
accent
#F731B1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B0740

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

Preview Lab → · Contrast checker → · Palette generator →

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