#1D187A#1D187A

#1D187A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.157 H 273.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#1D187A
RGBrgb(29, 24, 122)
HSLhsl(243, 67%, 29%)
HSVhsv(243, 80%, 48%)
CMYKcmyk(76.2%, 80.3%, 0%, 52.2%)
CIE-LABlab(17.08, 36.19, -53.99)
CIE-LCHlch(17.08, 65.00, 303.84°)
OKLaboklab(30.09% 0.0105 -0.1562)
OKLCHoklch(30.09% 0.157 273.8)
XYZxyz(4.3450, 2.3192, 18.6272)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D187A #757A18
analogous
#18447A #1D187A #4E187A
triadic
#1D187A #7A1D18 #187A1D
tetradic
#1D187A #7A1844 #757A18 #187A4E
square
#1D187A #7A1844 #757A18 #187A4E
split-complementary
#1D187A #7A4E18 #447A18
monochromatic
#06051A #110E47 #1D187A #2922AD #3D35D7

Accessibility & contrast

On white

14.34
#1D187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1D187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D187A
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D187A#FFFFFF#000000##FFFFFF
##1D187A1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d187a;
/* rgb */ color: rgb(29, 24, 122);
/* oklch */ color: oklch(30.1% 0.157 273.8);
Tailwind
colors: {
  custom: {
    50: '#6a57a2',
    500: '#1d187a',
    950: '#000000',
  },
}
SCSS
$custom: #1d187a;
$custom-light: #6a57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d187a",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 243.061,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30089,
    "c": 0.15654,
    "h": 273.8
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#1D187A
secondary
#A9AF3F
accent
#EA3EE1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D187A

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

Preview Lab → · Contrast checker → · Palette generator →

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