#1D397E#1D397E

#1D397E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.6% C 0.122 H 264.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#1D397E
RGBrgb(29, 57, 126)
HSLhsl(223, 63%, 30%)
HSVhsv(223, 77%, 49%)
CMYKcmyk(77%, 54.8%, 0%, 50.6%)
CIE-LABlab(25.84, 15.75, -42.19)
CIE-LCHlch(25.84, 45.03, 290.47°)
OKLaboklab(36.63% -0.0118 -0.1214)
OKLCHoklch(36.63% 0.122 264.5)
XYZxyz(5.7344, 4.6932, 20.3383)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D397E #7E621D
analogous
#1D6A7E #1D397E #311D7E
triadic
#1D397E #7E1D39 #397E1D
tetradic
#1D397E #7E1D6A #7E621D #1D7E31
square
#1D397E #7E1D6A #7E621D #1D7E31
split-complementary
#1D397E #7E311D #6A7E1D
monochromatic
#060C1B #12224C #1D397E #2850B0 #426CD3

Accessibility & contrast

On white

10.83
#1D397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D397E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D397E#FFFFFF#000000##FFFFFF
##1D397E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074280
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d397e;
/* rgb */ color: rgb(29, 57, 126);
/* oklch */ color: oklch(36.6% 0.122 264.5);
Tailwind
colors: {
  custom: {
    50: '#686ea4',
    500: '#1d397e',
    950: '#000000',
  },
}
SCSS
$custom: #1d397e;
$custom-light: #686ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d397e",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 222.68,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3663,
    "c": 0.12202,
    "h": 264.5
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#1D397E
secondary
#B19245
accent
#B642E6
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D397E

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

Preview Lab → · Contrast checker → · Palette generator →

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