#1D1888#1D1888

#1D1888 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.174 H 272.3°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#1D1888
RGBrgb(29, 24, 136)
HSLhsl(243, 70%, 31%)
HSVhsv(243, 82%, 53%)
CMYKcmyk(78.7%, 82.4%, 0%, 46.7%)
CIE-LABlab(18.76, 40.89, -60.08)
CIE-LCHlch(18.76, 72.67, 304.24°)
OKLaboklab(31.76% 0.0071 -0.1739)
OKLCHoklch(31.76% 0.174 272.3)
XYZxyz(5.2758, 2.6915, 23.5292)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1888 #838818
analogous
#184B88 #1D1888 #551888
triadic
#1D1888 #881D18 #18881D
tetradic
#1D1888 #88184B #838818 #188855
square
#1D1888 #88184B #838818 #188855
split-complementary
#1D1888 #885518 #4B8818
monochromatic
#070620 #120F54 #1D1888 #2821BC #453EDD

Accessibility & contrast

On white

13.65
#1D1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D1888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1888
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1888#FFFFFF#000000##FFFFFF
##1D18881.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1888;
/* rgb */ color: rgb(29, 24, 136);
/* oklch */ color: oklch(31.8% 0.174 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e58ac',
    500: '#1d1888',
    950: '#000000',
  },
}
SCSS
$custom: #1d1888;
$custom-light: #6e58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1888",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 242.679,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31757,
    "c": 0.174,
    "h": 272.3
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#1D1888
secondary
#B6BC40
accent
#ED3BE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1888

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

Preview Lab → · Contrast checker → · Palette generator →

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