#1B103E#1B103E

#1B103E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.0% C 0.083 H 288.6°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#1B103E
RGBrgb(27, 16, 62)
HSLhsl(254, 59%, 15%)
HSVhsv(254, 74%, 24%)
CMYKcmyk(56.5%, 74.2%, 0%, 75.7%)
CIE-LABlab(8.58, 19.65, -27.58)
CIE-LCHlch(8.58, 33.87, 305.47°)
OKLaboklab(22.03% 0.0266 -0.079)
OKLCHoklch(22.03% 0.083 288.6)
XYZxyz(1.5065, 0.9513, 4.6607)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B103E #333E10
analogous
#101C3E #1B103E #32103E
triadic
#1B103E #3E1B10 #103E1B
tetradic
#1B103E #3E101C #333E10 #103E32
square
#1B103E #3E101C #333E10 #103E32
split-complementary
#1B103E #3E3210 #1C3E10
monochromatic
#0B0618 #0B0618 #1B103E #301D6F #45299F

Accessibility & contrast

On white

17.64
#1B103E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B103E
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B103E#FFFFFF#000000##FFFFFF
##1B103E1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3F
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#0F1B25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1b103e;
/* rgb */ color: rgb(27, 16, 62);
/* oklch */ color: oklch(22.0% 0.083 288.6);
Tailwind
colors: {
  custom: {
    50: '#5b4e74',
    500: '#1b103e',
    950: '#000000',
  },
}
SCSS
$custom: #1b103e;
$custom-light: #5b4e74;
$custom-dark: #000000;
JSON
{
  "hex": "#1b103e",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 62
  },
  "hsl": {
    "h": 254.348,
    "s": 58.974,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22032,
    "c": 0.08342,
    "h": 288.6
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#1B103E
secondary
#677832
accent
#E246BD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B103E

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

Preview Lab → · Contrast checker → · Palette generator →

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