#1B1686#1B1686

#1B1686 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.174 H 271.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#1B1686
RGBrgb(27, 22, 134)
HSLhsl(243, 72%, 31%)
HSVhsv(243, 84%, 53%)
CMYKcmyk(79.9%, 83.6%, 0%, 47.5%)
CIE-LABlab(18.04, 41.12, -60.02)
CIE-LCHlch(18.04, 72.75, 304.41°)
OKLaboklab(31.15% 0.0057 -0.1737)
OKLCHoklch(31.15% 0.174 271.9)
XYZxyz(5.0405, 2.5275, 22.7718)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1686 #818616
analogous
#164986 #1B1686 #531686
triadic
#1B1686 #861B16 #16861B
tetradic
#1B1686 #861649 #818616 #168653
square
#1B1686 #861649 #818616 #168653
split-complementary
#1B1686 #865316 #498616
monochromatic
#06051D #100D51 #1B1686 #261FBB #3F38DE

Accessibility & contrast

On white

13.95
#1B1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1686
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1686#FFFFFF#000000##FFFFFF
##1B16861.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003189
Deuteranopia (green-blind)
#002684
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b1686;
/* rgb */ color: rgb(27, 22, 134);
/* oklch */ color: oklch(31.2% 0.174 271.9);
Tailwind
colors: {
  custom: {
    50: '#6d57ab',
    500: '#1b1686',
    950: '#000000',
  },
}
SCSS
$custom: #1b1686;
$custom-light: #6d57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1686",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 242.679,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31151,
    "c": 0.17379,
    "h": 271.9
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#1B1686
secondary
#B5BA3E
accent
#EF39E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1686

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

Preview Lab → · Contrast checker → · Palette generator →

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