#1D4187#1D4187

#1D4187 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.125 H 262.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#1D4187
RGBrgb(29, 65, 135)
HSLhsl(220, 65%, 32%)
HSVhsv(220, 79%, 53%)
CMYKcmyk(78.5%, 51.9%, 0%, 47.1%)
CIE-LABlab(28.88, 13.81, -42.90)
CIE-LCHlch(28.88, 45.06, 287.85°)
OKLaboklab(39.15% -0.0174 -0.1234)
OKLCHoklch(39.15% 0.125 262)
XYZxyz(6.7686, 5.7903, 23.6779)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4187 #87631D
analogous
#1D7687 #1D4187 #2E1D87
triadic
#1D4187 #871D41 #41871D
tetradic
#1D4187 #871D76 #87631D #1D872E
square
#1D4187 #871D76 #87631D #1D872E
split-complementary
#1D4187 #872E1D #76871D
monochromatic
#071022 #122955 #1D4187 #2859B9 #4778D7

Accessibility & contrast

On white

9.73
#1D4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1D4187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4187
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4187#FFFFFF#000000##FFFFFF
##1D41871.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d4187;
/* rgb */ color: rgb(29, 65, 135);
/* oklch */ color: oklch(39.2% 0.125 262.0);
Tailwind
colors: {
  custom: {
    50: '#6a75aa',
    500: '#1d4187',
    950: '#000000',
  },
}
SCSS
$custom: #1d4187;
$custom-light: #6a75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4187",
  "rgb": {
    "r": 29,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 219.623,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39154,
    "c": 0.12462,
    "h": 262
  },
  "luminance": 0.05791
}

Semantic roles & 50–950 ramp

primary
#1D4187
secondary
#B99246
accent
#AF40E8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1D4187

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

Preview Lab → · Contrast checker → · Palette generator →

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