#1B103F#1B103F

#1B103F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.1% C 0.085 H 288.2°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#1B103F
RGBrgb(27, 16, 63)
HSLhsl(254, 59%, 15%)
HSVhsv(254, 75%, 25%)
CMYKcmyk(57.1%, 74.6%, 0%, 75.3%)
CIE-LABlab(8.67, 20.01, -28.14)
CIE-LCHlch(8.67, 34.53, 305.41°)
OKLaboklab(22.13% 0.0265 -0.0807)
OKLCHoklch(22.13% 0.085 288.2)
XYZxyz(1.5342, 0.9624, 4.8066)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B103F #343F10
analogous
#101C3F #1B103F #32103F
triadic
#1B103F #3F1B10 #103F1B
tetradic
#1B103F #3F101C #343F10 #103F32
square
#1B103F #3F101C #343F10 #103F32
split-complementary
#1B103F #3F3210 #1C3F10
monochromatic
#0A0618 #0A0618 #1B103F #301C70 #4529A1

Accessibility & contrast

On white

17.61
#1B103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B103F
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B103F#FFFFFF#000000##FFFFFF
##1B103F1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#0E1C25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1b103f;
/* rgb */ color: rgb(27, 16, 63);
/* oklch */ color: oklch(22.1% 0.085 288.2);
Tailwind
colors: {
  custom: {
    50: '#5c4f74',
    500: '#1b103f',
    950: '#000000',
  },
}
SCSS
$custom: #1b103f;
$custom-light: #5c4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#1b103f",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 254.043,
    "s": 59.494,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2213,
    "c": 0.08493,
    "h": 288.2
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#1B103F
secondary
#687932
accent
#E345BE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B103F

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

Preview Lab → · Contrast checker → · Palette generator →

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