#1D398A#1D398A

#1D398A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.139 H 265.5°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#1D398A
RGBrgb(29, 57, 138)
HSLhsl(225, 65%, 33%)
HSVhsv(225, 79%, 54%)
CMYKcmyk(79%, 58.7%, 0%, 45.9%)
CIE-LABlab(26.80, 20.58, -48.13)
CIE-LCHlch(26.80, 52.35, 293.16°)
OKLaboklab(37.65% -0.0108 -0.1389)
OKLCHoklch(37.65% 0.139 265.5)
XYZxyz(6.5557, 5.0217, 24.6636)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D398A #8A6E1D
analogous
#1D6F8A #1D398A #371D8A
triadic
#1D398A #8A1D39 #398A1D
tetradic
#1D398A #8A1D6F #8A6E1D #1D8A37
square
#1D398A #8A1D6F #8A6E1D #1D8A37
split-complementary
#1D398A #8A371D #6F8A1D
monochromatic
#080F25 #122457 #1D398A #284EBD #496ED9

Accessibility & contrast

On white

10.48
#1D398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1D398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D398A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D398A#FFFFFF#000000##FFFFFF
##1D398A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1d398a;
/* rgb */ color: rgb(29, 57, 138);
/* oklch */ color: oklch(37.7% 0.139 265.5);
Tailwind
colors: {
  custom: {
    50: '#6b6ead',
    500: '#1d398a',
    950: '#000000',
  },
}
SCSS
$custom: #1d398a;
$custom-light: #6b6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1d398a",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 224.587,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37651,
    "c": 0.13935,
    "h": 265.5
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#1D398A
secondary
#BB9D48
accent
#BD40E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D398A

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

Preview Lab → · Contrast checker → · Palette generator →

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