#1A1786#1A1786

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

Color values

HEX#1A1786
RGBrgb(26, 23, 134)
HSLhsl(242, 71%, 31%)
HSVhsv(242, 83%, 53%)
CMYKcmyk(80.6%, 82.8%, 0%, 47.5%)
CIE-LABlab(18.16, 40.54, -59.83)
CIE-LCHlch(18.16, 72.28, 304.12°)
OKLaboklab(31.21% 0.0041 -0.1732)
OKLCHoklch(31.21% 0.173 271.4)
XYZxyz(5.0340, 2.5531, 22.7771)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1786 #838617
analogous
#174B86 #1A1786 #511786
triadic
#1A1786 #861A17 #17861A
tetradic
#1A1786 #86174B #838617 #178651
square
#1A1786 #86174B #838617 #178651
split-complementary
#1A1786 #865117 #4B8617
monochromatic
#06051E #100E52 #1A1786 #2420BA #3F3ADD

Accessibility & contrast

On white

13.90
#1A1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A1786
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1786#FFFFFF#000000##FFFFFF
##1A17861.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.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: #1a1786;
/* rgb */ color: rgb(26, 23, 134);
/* oklch */ color: oklch(31.2% 0.173 271.4);
Tailwind
colors: {
  custom: {
    50: '#6c57ab',
    500: '#1a1786',
    950: '#000000',
  },
}
SCSS
$custom: #1a1786;
$custom-light: #6c57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1786",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 241.622,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31214,
    "c": 0.17324,
    "h": 271.4
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#1A1786
secondary
#B7BA3F
accent
#ED3AE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1A1786

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

Preview Lab → · Contrast checker → · Palette generator →

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