#1D187D#1D187D

#1D187D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.160 H 273.5°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#1D187D
RGBrgb(29, 24, 125)
HSLhsl(243, 68%, 29%)
HSVhsv(243, 81%, 49%)
CMYKcmyk(76.8%, 80.8%, 0%, 51%)
CIE-LABlab(17.44, 37.21, -55.32)
CIE-LCHlch(17.44, 66.67, 303.93°)
OKLaboklab(30.44% 0.0098 -0.16)
OKLCHoklch(30.44% 0.16 273.5)
XYZxyz(4.5338, 2.3947, 19.6213)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D187D #787D18
analogous
#18467D #1D187D #50187D
triadic
#1D187D #7D1D18 #187D1D
tetradic
#1D187D #7D1846 #787D18 #187D50
square
#1D187D #7D1846 #787D18 #187D50
split-complementary
#1D187D #7D5018 #467D18
monochromatic
#06051A #110E4A #1D187D #2922B0 #3F37D9

Accessibility & contrast

On white

14.20
#1D187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D187D
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D187D#FFFFFF#000000##FFFFFF
##1D187D1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d187d;
/* rgb */ color: rgb(29, 24, 125);
/* oklch */ color: oklch(30.4% 0.160 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b57a4',
    500: '#1d187d',
    950: '#000000',
  },
}
SCSS
$custom: #1d187d;
$custom-light: #6b57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d187d",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 242.97,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30443,
    "c": 0.16035,
    "h": 273.5
  },
  "luminance": 0.02395
}

Semantic roles & 50–950 ramp

primary
#1D187D
secondary
#ACB23F
accent
#EB3DE2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D187D

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

Preview Lab → · Contrast checker → · Palette generator →

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