#1A1D87#1A1D87

#1A1D87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.169 H 270.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#1A1D87
RGBrgb(26, 29, 135)
HSLhsl(238, 68%, 32%)
HSVhsv(238, 81%, 53%)
CMYKcmyk(80.7%, 78.5%, 0%, 47.1%)
CIE-LABlab(19.42, 37.59, -58.37)
CIE-LCHlch(19.42, 69.43, 302.78°)
OKLaboklab(32.14% 0.002 -0.169)
OKLCHoklch(32.14% 0.169 270.7)
XYZxyz(5.2371, 2.8470, 23.1905)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1D87 #87841A
analogous
#1A5487 #1A1D87 #4E1A87
triadic
#1A1D87 #871A1D #1D871A
tetradic
#1A1D87 #871A54 #87841A #1A874E
square
#1A1D87 #871A54 #87841A #1A874E
split-complementary
#1A1D87 #874E1A #54871A
monochromatic
#060720 #101254 #1A1D87 #2428BA #4145DA

Accessibility & contrast

On white

13.38
#1A1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1A1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1D87
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1D87#FFFFFF#000000##FFFFFF
##1A1D871.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a1d87;
/* rgb */ color: rgb(26, 29, 135);
/* oklch */ color: oklch(32.1% 0.169 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c5bab',
    500: '#1a1d87',
    950: '#000000',
  },
}
SCSS
$custom: #1a1d87;
$custom-light: #6c5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1d87",
  "rgb": {
    "r": 26,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 238.349,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32135,
    "c": 0.16904,
    "h": 270.7
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#1A1D87
secondary
#BAB742
accent
#E63DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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