#1D397F#1D397F

#1D397F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.123 H 264.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#1D397F
RGBrgb(29, 57, 127)
HSLhsl(223, 63%, 31%)
HSVhsv(223, 77%, 50%)
CMYKcmyk(77.2%, 55.1%, 0%, 50.2%)
CIE-LABlab(25.92, 16.15, -42.69)
CIE-LCHlch(25.92, 45.64, 290.73°)
OKLaboklab(36.71% -0.0117 -0.1229)
OKLCHoklch(36.71% 0.123 264.6)
XYZxyz(5.7992, 4.7191, 20.6798)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D397F #7F631D
analogous
#1D6A7F #1D397F #321D7F
triadic
#1D397F #7F1D39 #397F1D
tetradic
#1D397F #7F1D6A #7F631D #1D7F32
square
#1D397F #7F1D6A #7F631D #1D7F32
split-complementary
#1D397F #7F321D #6A7F1D
monochromatic
#060C1B #12234D #1D397F #284FB1 #426CD4

Accessibility & contrast

On white

10.80
#1D397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1D397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D397F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D397F#FFFFFF#000000##FFFFFF
##1D397F1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054281
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d397f;
/* rgb */ color: rgb(29, 57, 127);
/* oklch */ color: oklch(36.7% 0.123 264.6);
Tailwind
colors: {
  custom: {
    50: '#686ea5',
    500: '#1d397f',
    950: '#000000',
  },
}
SCSS
$custom: #1d397f;
$custom-light: #686ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d397f",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 222.857,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36713,
    "c": 0.12348,
    "h": 264.6
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#1D397F
secondary
#B29345
accent
#B742E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D397F

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

Preview Lab → · Contrast checker → · Palette generator →

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