#1D397B#1D397B

#1D397B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.118 H 264.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#1D397B
RGBrgb(29, 57, 123)
HSLhsl(222, 62%, 30%)
HSVhsv(222, 76%, 48%)
CMYKcmyk(76.4%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.61, 14.53, -40.66)
CIE-LCHlch(25.61, 43.18, 289.67°)
OKLaboklab(36.39% -0.0121 -0.117)
OKLCHoklch(36.39% 0.118 264.1)
XYZxyz(5.5437, 4.6169, 19.3340)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D397B #7B5F1D
analogous
#1D687B #1D397B #301D7B
triadic
#1D397B #7B1D39 #397B1D
tetradic
#1D397B #7B1D68 #7B5F1D #1D7B30
square
#1D397B #7B1D68 #7B5F1D #1D7B30
split-complementary
#1D397B #7B301D #687B1D
monochromatic
#060B19 #112249 #1D397B #2950AD #406CD2

Accessibility & contrast

On white

10.92
#1D397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D397B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D397B#FFFFFF#000000##FFFFFF
##1D397B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d397b;
/* rgb */ color: rgb(29, 57, 123);
/* oklch */ color: oklch(36.4% 0.118 264.1);
Tailwind
colors: {
  custom: {
    50: '#676ea2',
    500: '#1d397b',
    950: '#000000',
  },
}
SCSS
$custom: #1d397b;
$custom-light: #676ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d397b",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 222.128,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36385,
    "c": 0.11759,
    "h": 264.1
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#1D397B
secondary
#AF8F45
accent
#B543E5
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D397B

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

Preview Lab → · Contrast checker → · Palette generator →

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