#1D398F#1D398F

#1D398F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.146 H 265.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#1D398F
RGBrgb(29, 57, 143)
HSLhsl(225, 66%, 34%)
HSVhsv(225, 80%, 56%)
CMYKcmyk(79.7%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.21, 22.58, -50.54)
CIE-LCHlch(27.21, 55.36, 294.07°)
OKLaboklab(38.09% -0.0106 -0.146)
OKLCHoklch(38.09% 0.146 265.8)
XYZxyz(6.9260, 5.1698, 26.6141)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D398F #8F731D
analogous
#1D728F #1D398F #3A1D8F
triadic
#1D398F #8F1D39 #398F1D
tetradic
#1D398F #8F1D72 #8F731D #1D8F3A
square
#1D398F #8F1D72 #8F731D #1D8F3A
split-complementary
#1D398F #8F3A1D #728F1D
monochromatic
#081029 #13255C #1D398F #274DC2 #4C6FDB

Accessibility & contrast

On white

10.32
#1D398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1D398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D398F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D398F#FFFFFF#000000##FFFFFF
##1D398F1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d398f;
/* rgb */ color: rgb(29, 57, 143);
/* oklch */ color: oklch(38.1% 0.146 265.8);
Tailwind
colors: {
  custom: {
    50: '#6c6fb1',
    500: '#1d398f',
    950: '#000000',
  },
}
SCSS
$custom: #1d398f;
$custom-light: #6c6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d398f",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 225.263,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38094,
    "c": 0.14641,
    "h": 265.8
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

primary
#1D398F
secondary
#BDA14B
accent
#BF3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1D398F

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

Preview Lab → · Contrast checker → · Palette generator →

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