#1D387F#1D387F

#1D387F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.5% C 0.125 H 265.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#1D387F
RGBrgb(29, 56, 127)
HSLhsl(223, 63%, 31%)
HSVhsv(223, 77%, 50%)
CMYKcmyk(77.2%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.63, 16.86, -43.16)
CIE-LCHlch(25.63, 46.34, 291.33°)
OKLaboklab(36.49% -0.0108 -0.1243)
OKLCHoklch(36.49% 0.125 265)
XYZxyz(5.7503, 4.6212, 20.6635)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D387F #7F641D
analogous
#1D697F #1D387F #331D7F
triadic
#1D387F #7F1D38 #387F1D
tetradic
#1D387F #7F1D69 #7F641D #1D7F33
square
#1D387F #7F1D69 #7F641D #1D7F33
split-complementary
#1D387F #7F331D #697F1D
monochromatic
#060C1B #12224D #1D387F #284EB1 #426BD4

Accessibility & contrast

On white

10.91
#1D387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D387F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D387F#FFFFFF#000000##FFFFFF
##1D387F1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d387f;
/* rgb */ color: rgb(29, 56, 127);
/* oklch */ color: oklch(36.5% 0.125 265.0);
Tailwind
colors: {
  custom: {
    50: '#686ea5',
    500: '#1d387f',
    950: '#000000',
  },
}
SCSS
$custom: #1d387f;
$custom-light: #686ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d387f",
  "rgb": {
    "r": 29,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 223.469,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36492,
    "c": 0.12481,
    "h": 265
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#1D387F
secondary
#B29445
accent
#B942E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D387F

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

Preview Lab → · Contrast checker → · Palette generator →

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