#1B1786#1B1786

#1B1786 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.173 H 271.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#1B1786
RGBrgb(27, 23, 134)
HSLhsl(242, 71%, 31%)
HSVhsv(242, 83%, 53%)
CMYKcmyk(79.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(18.22, 40.61, -59.73)
CIE-LCHlch(18.22, 72.23, 304.21°)
OKLaboklab(31.27% 0.0054 -0.1729)
OKLCHoklch(31.27% 0.173 271.8)
XYZxyz(5.0600, 2.5665, 22.7783)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1786 #828617
analogous
#174A86 #1B1786 #521786
triadic
#1B1786 #861B17 #17861B
tetradic
#1B1786 #86174A #828617 #178652
square
#1B1786 #86174A #828617 #178652
split-complementary
#1B1786 #865217 #4A8617
monochromatic
#06051E #100E52 #1B1786 #2620BA #403ADD

Accessibility & contrast

On white

13.88
#1B1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1786
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1786#FFFFFF#000000##FFFFFF
##1B17861.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1786;
/* rgb */ color: rgb(27, 23, 134);
/* oklch */ color: oklch(31.3% 0.173 271.8);
Tailwind
colors: {
  custom: {
    50: '#6d57ab',
    500: '#1b1786',
    950: '#000000',
  },
}
SCSS
$custom: #1b1786;
$custom-light: #6d57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1786",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 242.162,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31272,
    "c": 0.17296,
    "h": 271.8
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#1B1786
secondary
#B6BA3F
accent
#ED3AE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1786

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

Preview Lab → · Contrast checker → · Palette generator →

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