#1B104B#1B104B

#1B104B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.103 H 283.6°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#1B104B
RGBrgb(27, 16, 75)
HSLhsl(251, 65%, 18%)
HSVhsv(251, 79%, 29%)
CMYKcmyk(64%, 78.7%, 0%, 70.6%)
CIE-LABlab(9.89, 24.28, -34.60)
CIE-LCHlch(9.89, 42.26, 305.06°)
OKLaboklab(23.38% 0.0242 -0.0996)
OKLCHoklch(23.38% 0.103 283.6)
XYZxyz(1.9069, 1.1115, 6.7693)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B104B #404B10
analogous
#10234B #1B104B #38104B
triadic
#1B104B #4B1B10 #104B1B
tetradic
#1B104B #4B1023 #404B10 #104B38
square
#1B104B #4B1023 #404B10 #104B38
split-complementary
#1B104B #4B3810 #234B10
monochromatic
#090519 #090519 #1B104B #2D1B7D #3F26B0

Accessibility & contrast

On white

17.18
#1B104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1B104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B104B
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B104B#FFFFFF#000000##FFFFFF
##1B104B1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#00194A
Tritanopia (blue-blind)
#03202C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1b104b;
/* rgb */ color: rgb(27, 16, 75);
/* oklch */ color: oklch(23.4% 0.103 283.6);
Tailwind
colors: {
  custom: {
    50: '#5e4f7e',
    500: '#1b104b',
    950: '#000000',
  },
}
SCSS
$custom: #1b104b;
$custom-light: #5e4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b104b",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 251.186,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23375,
    "c": 0.10252,
    "h": 283.6
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#1B104B
secondary
#758532
accent
#E840C9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B104B

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

Preview Lab → · Contrast checker → · Palette generator →

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