#1B0B4B#1B0B4B

#1B0B4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.108 H 285.2°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#1B0B4B
RGBrgb(27, 11, 75)
HSLhsl(255, 74%, 17%)
HSVhsv(255, 85%, 29%)
CMYKcmyk(64%, 85.3%, 0%, 70.6%)
CIE-LABlab(8.83, 27.28, -36.34)
CIE-LCHlch(8.83, 45.44, 306.89°)
OKLaboklab(22.63% 0.0285 -0.1047)
OKLCHoklch(22.63% 0.109 285.2)
XYZxyz(1.8413, 0.9802, 6.7474)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0B4B #3B4B0B
analogous
#0B1B4B #1B0B4B #3B0B4B
triadic
#1B0B4B #4B1B0B #0B4B1B
tetradic
#1B0B4B #4B0B1B #3B4B0B #0B4B3B
square
#1B0B4B #4B0B1B #3B4B0B #0B4B3B
split-complementary
#1B0B4B #4B3B0B #1B4B0B
monochromatic
#0A041B #0A041B #1B0B4B #2E1380 #411BB6

Accessibility & contrast

On white

17.56
#1B0B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1B0B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0B4B
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0B4B#FFFFFF#000000##FFFFFF
##1B0B4B1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#031E2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1b0b4b;
/* rgb */ color: rgb(27, 11, 75);
/* oklch */ color: oklch(22.6% 0.108 285.2);
Tailwind
colors: {
  custom: {
    50: '#5f4c7e',
    500: '#1b0b4b',
    950: '#000000',
  },
}
SCSS
$custom: #1b0b4b;
$custom-light: #5f4c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0b4b",
  "rgb": {
    "r": 27,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 255,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.22626,
    "c": 0.1085,
    "h": 285.2
  },
  "luminance": 0.0098
}

Semantic roles & 50–950 ramp

primary
#1B0B4B
secondary
#70872B
accent
#F137C2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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