#1B0742#1B0742

#1B0742 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.101 H 290.3°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#1B0742
RGBrgb(27, 7, 66)
HSLhsl(260, 81%, 14%)
HSVhsv(260, 89%, 26%)
CMYKcmyk(59.1%, 89.4%, 0%, 74.1%)
CIE-LABlab(7.03, 26.46, -32.97)
CIE-LCHlch(7.03, 42.27, 308.75°)
OKLaboklab(21.03% 0.0352 -0.095)
OKLCHoklch(21.03% 0.101 290.3)
XYZxyz(1.5111, 0.7783, 5.2238)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0742 #2E4207
analogous
#071142 #1B0742 #390742
triadic
#1B0742 #421B07 #07421B
tetradic
#1B0742 #420711 #2E4207 #074239
square
#1B0742 #420711 #2E4207 #074239
split-complementary
#1B0742 #423907 #114207
monochromatic
#0B031C #0B031C #1B0742 #320D79 #4813B1

Accessibility & contrast

On white

18.17
#1B0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1B0742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0742
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0742#FFFFFF#000000##FFFFFF
##1B07421.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#0D1825
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1b0742;
/* rgb */ color: rgb(27, 7, 66);
/* oklch */ color: oklch(21.0% 0.101 290.3);
Tailwind
colors: {
  custom: {
    50: '#5d4977',
    500: '#1b0742',
    950: '#000000',
  },
}
SCSS
$custom: #1b0742;
$custom-light: #5d4977;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0742",
  "rgb": {
    "r": 27,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 260.339,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21032,
    "c": 0.10128,
    "h": 290.3
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#1B0742
secondary
#618124
accent
#F731B4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0742

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

Preview Lab → · Contrast checker → · Palette generator →

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