#1A1887#1A1887

#1A1887 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.174 H 271.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1A1887
RGBrgb(26, 24, 135)
HSLhsl(241, 70%, 31%)
HSVhsv(241, 82%, 53%)
CMYKcmyk(80.7%, 82.2%, 0%, 47.1%)
CIE-LABlab(18.46, 40.35, -59.96)
CIE-LCHlch(18.46, 72.28, 303.94°)
OKLaboklab(31.46% 0.0036 -0.1736)
OKLCHoklch(31.46% 0.174 271.2)
XYZxyz(5.1243, 2.6216, 23.1529)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1887 #858718
analogous
#184D87 #1A1887 #511887
triadic
#1A1887 #871A18 #18871A
tetradic
#1A1887 #87184D #858718 #188751
square
#1A1887 #87184D #858718 #188751
split-complementary
#1A1887 #875118 #4D8718
monochromatic
#06061F #100F53 #1A1887 #2421BB #403DDC

Accessibility & contrast

On white

13.78
#1A1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1A1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1887
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1887#FFFFFF#000000##FFFFFF
##1A18871.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002785
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a1887;
/* rgb */ color: rgb(26, 24, 135);
/* oklch */ color: oklch(31.5% 0.174 271.2);
Tailwind
colors: {
  custom: {
    50: '#6d58ab',
    500: '#1a1887',
    950: '#000000',
  },
}
SCSS
$custom: #1a1887;
$custom-light: #6d58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1887",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 241.081,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31461,
    "c": 0.17362,
    "h": 271.2
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#1A1887
secondary
#B8BB40
accent
#ED3BE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1A1887

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

Preview Lab → · Contrast checker → · Palette generator →

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