#1D387E#1D387E

#1D387E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.123 H 264.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#1D387E
RGBrgb(29, 56, 126)
HSLhsl(223, 63%, 30%)
HSVhsv(223, 77%, 49%)
CMYKcmyk(77%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.55, 16.45, -42.66)
CIE-LCHlch(25.55, 45.72, 291.09°)
OKLaboklab(36.41% -0.0109 -0.1229)
OKLCHoklch(36.41% 0.123 264.9)
XYZxyz(5.6854, 4.5953, 20.3220)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D387E #7E631D
analogous
#1D687E #1D387E #321D7E
triadic
#1D387E #7E1D38 #387E1D
tetradic
#1D387E #7E1D68 #7E631D #1D7E32
square
#1D387E #7E1D68 #7E631D #1D7E32
split-complementary
#1D387E #7E321D #687E1D
monochromatic
#060C1B #12224C #1D387E #284EB0 #426AD3

Accessibility & contrast

On white

10.94
#1D387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1D387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D387E
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D387E#FFFFFF#000000##FFFFFF
##1D387E1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024180
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d387e;
/* rgb */ color: rgb(29, 56, 126);
/* oklch */ color: oklch(36.4% 0.123 264.9);
Tailwind
colors: {
  custom: {
    50: '#686ea4',
    500: '#1d387e',
    950: '#000000',
  },
}
SCSS
$custom: #1d387e;
$custom-light: #686ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d387e",
  "rgb": {
    "r": 29,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 223.299,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.12334,
    "h": 264.9
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#1D387E
secondary
#B19345
accent
#B842E6
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D387E

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

Preview Lab → · Contrast checker → · Palette generator →

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