#1B104D#1B104D

#1B104D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.105 H 283.0°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#1B104D
RGBrgb(27, 16, 77)
HSLhsl(251, 66%, 18%)
HSVhsv(251, 79%, 30%)
CMYKcmyk(64.9%, 79.2%, 0%, 69.8%)
CIE-LABlab(10.10, 24.99, -35.63)
CIE-LCHlch(10.10, 43.52, 305.04°)
OKLaboklab(23.59% 0.0237 -0.1026)
OKLCHoklch(23.59% 0.105 283)
XYZxyz(1.9764, 1.1393, 7.1355)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B104D #424D10
analogous
#10234D #1B104D #39104D
triadic
#1B104D #4D1B10 #104D1B
tetradic
#1B104D #4D1023 #424D10 #104D39
square
#1B104D #4D1023 #424D10 #104D39
split-complementary
#1B104D #4D3910 #234D10
monochromatic
#090519 #09051A #1B104D #2D1B80 #3F25B2

Accessibility & contrast

On white

17.10
#1B104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1B104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B104D
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B104D#FFFFFF#000000##FFFFFF
##1B104D1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b104d;
/* rgb */ color: rgb(27, 16, 77);
/* oklch */ color: oklch(23.6% 0.105 283.0);
Tailwind
colors: {
  custom: {
    50: '#5f4f7f',
    500: '#1b104d',
    950: '#000000',
  },
}
SCSS
$custom: #1b104d;
$custom-light: #5f4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b104d",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 250.82,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23592,
    "c": 0.10535,
    "h": 283
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#1B104D
secondary
#788732
accent
#E93FCA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B104D

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

Preview Lab → · Contrast checker → · Palette generator →

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