#1D398E#1D398E

#1D398E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.145 H 265.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1D398E
RGBrgb(29, 57, 142)
HSLhsl(225, 66%, 34%)
HSVhsv(225, 80%, 56%)
CMYKcmyk(79.6%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.13, 22.18, -50.06)
CIE-LCHlch(27.13, 54.76, 293.90°)
OKLaboklab(38.01% -0.0107 -0.1446)
OKLCHoklch(38.01% 0.145 265.8)
XYZxyz(6.8506, 5.1397, 26.2169)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D398E #8E721D
analogous
#1D718E #1D398E #391D8E
triadic
#1D398E #8E1D39 #398E1D
tetradic
#1D398E #8E1D71 #8E721D #1D8E39
square
#1D398E #8E1D71 #8E721D #1D8E39
split-complementary
#1D398E #8E391D #718E1D
monochromatic
#081028 #13255B #1D398E #274DC1 #4B6FDA

Accessibility & contrast

On white

10.36
#1D398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D398E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D398E#FFFFFF#000000##FFFFFF
##1D398E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d398e;
/* rgb */ color: rgb(29, 57, 142);
/* oklch */ color: oklch(38.0% 0.145 265.8);
Tailwind
colors: {
  custom: {
    50: '#6c6fb0',
    500: '#1d398e',
    950: '#000000',
  },
}
SCSS
$custom: #1d398e;
$custom-light: #6c6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d398e",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 225.133,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38005,
    "c": 0.145,
    "h": 265.8
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#1D398E
secondary
#BDA04A
accent
#BF3FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1D398E

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

Preview Lab → · Contrast checker → · Palette generator →

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