#1B104E#1B104E

#1B104E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.107 H 282.7°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#1B104E
RGBrgb(27, 16, 78)
HSLhsl(251, 66%, 18%)
HSVhsv(251, 79%, 31%)
CMYKcmyk(65.4%, 79.5%, 0%, 69.4%)
CIE-LABlab(10.21, 25.34, -36.14)
CIE-LCHlch(10.21, 44.14, 305.03°)
OKLaboklab(23.7% 0.0235 -0.1042)
OKLCHoklch(23.7% 0.107 282.7)
XYZxyz(2.0120, 1.1535, 7.3229)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B104E #434E10
analogous
#10244E #1B104E #3A104E
triadic
#1B104E #4E1B10 #104E1B
tetradic
#1B104E #4E1024 #434E10 #104E3A
square
#1B104E #4E1024 #434E10 #104E3A
split-complementary
#1B104E #4E3A10 #244E10
monochromatic
#090519 #09061B #1B104E #2D1A81 #3E25B4

Accessibility & contrast

On white

17.06
#1B104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1B104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B104E
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B104E#FFFFFF#000000##FFFFFF
##1B104E1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b104e;
/* rgb */ color: rgb(27, 16, 78);
/* oklch */ color: oklch(23.7% 0.107 282.7);
Tailwind
colors: {
  custom: {
    50: '#5f4f80',
    500: '#1b104e',
    950: '#000000',
  },
}
SCSS
$custom: #1b104e;
$custom-light: #5f4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#1b104e",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 250.645,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23702,
    "c": 0.10677,
    "h": 282.7
  },
  "luminance": 0.01154
}

Semantic roles & 50–950 ramp

primary
#1B104E
secondary
#798832
accent
#E93FCB
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B104E

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

Preview Lab → · Contrast checker → · Palette generator →

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