#1D398B#1D398B

#1D398B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.141 H 265.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#1D398B
RGBrgb(29, 57, 139)
HSLhsl(225, 65%, 33%)
HSVhsv(225, 79%, 55%)
CMYKcmyk(79.1%, 59%, 0%, 45.5%)
CIE-LABlab(26.88, 20.98, -48.62)
CIE-LCHlch(26.88, 52.95, 293.35°)
OKLaboklab(37.74% -0.0108 -0.1403)
OKLCHoklch(37.74% 0.141 265.6)
XYZxyz(6.6284, 5.0508, 25.0467)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D398B #8B6F1D
analogous
#1D708B #1D398B #381D8B
triadic
#1D398B #8B1D39 #398B1D
tetradic
#1D398B #8B1D70 #8B6F1D #1D8B38
square
#1D398B #8B1D70 #8B6F1D #1D8B38
split-complementary
#1D398B #8B381D #708B1D
monochromatic
#080F26 #122458 #1D398B #284EBE #496ED9

Accessibility & contrast

On white

10.45
#1D398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1D398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D398B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D398B#FFFFFF#000000##FFFFFF
##1D398B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d398b;
/* rgb */ color: rgb(29, 57, 139);
/* oklch */ color: oklch(37.7% 0.141 265.6);
Tailwind
colors: {
  custom: {
    50: '#6b6eae',
    500: '#1d398b',
    950: '#000000',
  },
}
SCSS
$custom: #1d398b;
$custom-light: #6b6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d398b",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 224.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37739,
    "c": 0.14076,
    "h": 265.6
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#1D398B
secondary
#BB9E49
accent
#BD3FE8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D398B

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

Preview Lab → · Contrast checker → · Palette generator →

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