#1D398C#1D398C

#1D398C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.142 H 265.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1D398C
RGBrgb(29, 57, 140)
HSLhsl(225, 66%, 33%)
HSVhsv(225, 79%, 55%)
CMYKcmyk(79.3%, 59.3%, 0%, 45.1%)
CIE-LABlab(26.96, 21.38, -49.10)
CIE-LCHlch(26.96, 53.55, 293.53°)
OKLaboklab(37.83% -0.0107 -0.1418)
OKLCHoklch(37.83% 0.142 265.7)
XYZxyz(6.7018, 5.0802, 25.4332)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D398C #8C701D
analogous
#1D708C #1D398C #391D8C
triadic
#1D398C #8C1D39 #398C1D
tetradic
#1D398C #8C1D70 #8C701D #1D8C39
square
#1D398C #8C1D70 #8C701D #1D8C39
split-complementary
#1D398C #8C391D #708C1D
monochromatic
#081027 #122459 #1D398C #284EBF #4A6ED9

Accessibility & contrast

On white

10.42
#1D398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1D398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D398C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D398C#FFFFFF#000000##FFFFFF
##1D398C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d398c;
/* rgb */ color: rgb(29, 57, 140);
/* oklch */ color: oklch(37.8% 0.142 265.7);
Tailwind
colors: {
  custom: {
    50: '#6c6eae',
    500: '#1d398c',
    950: '#000000',
  },
}
SCSS
$custom: #1d398c;
$custom-light: #6c6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d398c",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 224.865,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.14219,
    "h": 265.7
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#1D398C
secondary
#BC9F49
accent
#BE3FE9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1D398C

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

Preview Lab → · Contrast checker → · Palette generator →

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