#1D2887#1D2887

#1D2887 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.156 H 270.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#1D2887
RGBrgb(29, 40, 135)
HSLhsl(234, 65%, 32%)
HSVhsv(234, 79%, 53%)
CMYKcmyk(78.5%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.04, 31.01, -54.04)
CIE-LCHlch(22.04, 62.30, 299.85°)
OKLaboklab(34.06% 0.0003 -0.1564)
OKLCHoklch(34.06% 0.156 270.1)
XYZxyz(5.6372, 3.5274, 23.3007)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2887 #877C1D
analogous
#1D5D87 #1D2887 #471D87
triadic
#1D2887 #871D28 #28871D
tetradic
#1D2887 #871D5D #877C1D #1D8747
square
#1D2887 #871D5D #877C1D #1D8747
split-complementary
#1D2887 #87471D #5D871D
monochromatic
#070A22 #121955 #1D2887 #2837B9 #4756D7

Accessibility & contrast

On white

12.31
#1D2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1D2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2887
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2887#FFFFFF#000000##FFFFFF
##1D28871.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d2887;
/* rgb */ color: rgb(29, 40, 135);
/* oklch */ color: oklch(34.1% 0.156 270.1);
Tailwind
colors: {
  custom: {
    50: '#6c62ab',
    500: '#1d2887',
    950: '#000000',
  },
}
SCSS
$custom: #1d2887;
$custom-light: #6c62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2887",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 233.774,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34056,
    "c": 0.15641,
    "h": 270.1
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#1D2887
secondary
#B9AD46
accent
#D640E8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D2887

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

Preview Lab → · Contrast checker → · Palette generator →

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