#1B0B4A#1B0B4A

#1B0B4A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.107 H 285.6°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#1B0B4A
RGBrgb(27, 11, 74)
HSLhsl(255, 74%, 17%)
HSVhsv(255, 85%, 29%)
CMYKcmyk(63.5%, 85.1%, 0%, 71%)
CIE-LABlab(8.71, 26.94, -35.83)
CIE-LCHlch(8.71, 44.83, 306.94°)
OKLaboklab(22.51% 0.0288 -0.1032)
OKLCHoklch(22.51% 0.107 285.6)
XYZxyz(1.8073, 0.9667, 6.5686)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0B4A #3A4A0B
analogous
#0B1B4A #1B0B4A #3B0B4A
triadic
#1B0B4A #4A1B0B #0B4A1B
tetradic
#1B0B4A #4A0B1B #3A4A0B #0B4A3B
square
#1B0B4A #4A0B1B #3A4A0B #0B4A3B
split-complementary
#1B0B4A #4A3B0B #1B4A0B
monochromatic
#0A041B #0A041B #1B0B4A #2E137F #421BB5

Accessibility & contrast

On white

17.60
#1B0B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1B0B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0B4A
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0B4A#FFFFFF#000000##FFFFFF
##1B0B4A1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001749
Tritanopia (blue-blind)
#041D2A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1b0b4a;
/* rgb */ color: rgb(27, 11, 74);
/* oklch */ color: oklch(22.5% 0.107 285.6);
Tailwind
colors: {
  custom: {
    50: '#5f4c7d',
    500: '#1b0b4a',
    950: '#000000',
  },
}
SCSS
$custom: #1b0b4a;
$custom-light: #5f4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0b4a",
  "rgb": {
    "r": 27,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 255.238,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22511,
    "c": 0.10716,
    "h": 285.6
  },
  "luminance": 0.00967
}

Semantic roles & 50–950 ramp

primary
#1B0B4A
secondary
#6F862B
accent
#F137C2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1B0B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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