#1D1988#1D1988

#1D1988 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.173 H 272.2°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#1D1988
RGBrgb(29, 25, 136)
HSLhsl(242, 69%, 32%)
HSVhsv(242, 82%, 53%)
CMYKcmyk(78.7%, 81.6%, 0%, 46.7%)
CIE-LABlab(18.94, 40.37, -59.78)
CIE-LCHlch(18.94, 72.13, 304.03°)
OKLaboklab(31.88% 0.0068 -0.173)
OKLCHoklch(31.88% 0.173 272.2)
XYZxyz(5.2968, 2.7335, 23.5362)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1988 #848819
analogous
#194D88 #1D1988 #551988
triadic
#1D1988 #881D19 #19881D
tetradic
#1D1988 #88194D #848819 #198855
square
#1D1988 #88194D #848819 #198855
split-complementary
#1D1988 #885519 #4D8819
monochromatic
#070621 #120F54 #1D1988 #2823BC #4540DC

Accessibility & contrast

On white

13.58
#1D1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1D1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1988
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1988#FFFFFF#000000##FFFFFF
##1D19881.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002886
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d1988;
/* rgb */ color: rgb(29, 25, 136);
/* oklch */ color: oklch(31.9% 0.173 272.2);
Tailwind
colors: {
  custom: {
    50: '#6e59ac',
    500: '#1d1988',
    950: '#000000',
  },
}
SCSS
$custom: #1d1988;
$custom-light: #6e59ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1988",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 242.162,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.17315,
    "h": 272.2
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#1D1988
secondary
#B7BB41
accent
#EC3CE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1988

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

Preview Lab → · Contrast checker → · Palette generator →

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