#1B103B#1B103B

#1B103B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.079 H 290.0°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#1B103B
RGBrgb(27, 16, 59)
HSLhsl(255, 57%, 15%)
HSVhsv(255, 73%, 23%)
CMYKcmyk(54.2%, 72.9%, 0%, 76.9%)
CIE-LABlab(8.30, 18.59, -25.89)
CIE-LCHlch(8.30, 31.87, 305.68°)
OKLaboklab(21.74% 0.027 -0.0741)
OKLCHoklch(21.74% 0.079 290)
XYZxyz(1.4265, 0.9193, 4.2391)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B103B #303B10
analogous
#101B3B #1B103B #31103B
triadic
#1B103B #3B1B10 #103B1B
tetradic
#1B103B #3B101B #303B10 #103B31
square
#1B103B #3B101B #303B10 #103B31
split-complementary
#1B103B #3B3110 #1B3B10
monochromatic
#0B0718 #0B0718 #1B103B #311D6B #472A9B

Accessibility & contrast

On white

17.74
#1B103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1B103B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B103B
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B103B#FFFFFF#000000##FFFFFF
##1B103B1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00173A
Tritanopia (blue-blind)
#111A23
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1b103b;
/* rgb */ color: rgb(27, 16, 59);
/* oklch */ color: oklch(21.7% 0.079 290.0);
Tailwind
colors: {
  custom: {
    50: '#5b4e71',
    500: '#1b103b',
    950: '#000000',
  },
}
SCSS
$custom: #1b103b;
$custom-light: #5b4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#1b103b",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 255.349,
    "s": 57.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21742,
    "c": 0.07883,
    "h": 290
  },
  "luminance": 0.00919
}

Semantic roles & 50–950 ramp

primary
#1B103B
secondary
#647532
accent
#E147B9
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #1B103B

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

Preview Lab → · Contrast checker → · Palette generator →

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