#1D397D#1D397D

#1D397D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.5% C 0.121 H 264.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#1D397D
RGBrgb(29, 57, 125)
HSLhsl(223, 62%, 30%)
HSVhsv(223, 77%, 49%)
CMYKcmyk(76.8%, 54.4%, 0%, 51%)
CIE-LABlab(25.77, 15.35, -41.68)
CIE-LCHlch(25.77, 44.41, 290.21°)
OKLaboklab(36.55% -0.0119 -0.12)
OKLCHoklch(36.55% 0.121 264.4)
XYZxyz(5.6702, 4.6675, 20.0001)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D397D #7D611D
analogous
#1D697D #1D397D #311D7D
triadic
#1D397D #7D1D39 #397D1D
tetradic
#1D397D #7D1D69 #7D611D #1D7D31
square
#1D397D #7D1D69 #7D611D #1D7D31
split-complementary
#1D397D #7D311D #697D1D
monochromatic
#060C1A #11224B #1D397D #2950AF #416CD3

Accessibility & contrast

On white

10.86
#1D397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1D397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D397D
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D397D#FFFFFF#000000##FFFFFF
##1D397D1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A427F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d397d;
/* rgb */ color: rgb(29, 57, 125);
/* oklch */ color: oklch(36.5% 0.121 264.4);
Tailwind
colors: {
  custom: {
    50: '#686ea3',
    500: '#1d397d',
    950: '#000000',
  },
}
SCSS
$custom: #1d397d;
$custom-light: #686ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d397d",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 222.5,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36548,
    "c": 0.12054,
    "h": 264.4
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#1D397D
secondary
#B19145
accent
#B642E5
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D397D

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

Preview Lab → · Contrast checker → · Palette generator →

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