#1B104A#1B104A

#1B104A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.101 H 284.0°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#1B104A
RGBrgb(27, 16, 74)
HSLhsl(251, 64%, 18%)
HSVhsv(251, 78%, 29%)
CMYKcmyk(63.5%, 78.4%, 0%, 71%)
CIE-LABlab(9.78, 23.92, -34.08)
CIE-LCHlch(9.78, 41.63, 305.07°)
OKLaboklab(23.27% 0.0244 -0.0981)
OKLCHoklch(23.27% 0.101 284)
XYZxyz(1.8729, 1.0979, 6.5905)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B104A #3F4A10
analogous
#10224A #1B104A #38104A
triadic
#1B104A #4A1B10 #104A1B
tetradic
#1B104A #4A1022 #3F4A10 #104A38
square
#1B104A #4A1022 #3F4A10 #104A38
split-complementary
#1B104A #4A3810 #224A10
monochromatic
#090519 #090519 #1B104A #2D1B7C #4026AF

Accessibility & contrast

On white

17.22
#1B104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B104A
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B104A#FFFFFF#000000##FFFFFF
##1B104A1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#04202B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1b104a;
/* rgb */ color: rgb(27, 16, 74);
/* oklch */ color: oklch(23.3% 0.101 284.0);
Tailwind
colors: {
  custom: {
    50: '#5e4f7d',
    500: '#1b104a',
    950: '#000000',
  },
}
SCSS
$custom: #1b104a;
$custom-light: #5e4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b104a",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 251.379,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23267,
    "c": 0.10109,
    "h": 284
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#1B104A
secondary
#748432
accent
#E740C8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B104A

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

Preview Lab → · Contrast checker → · Palette generator →

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