#1D398D#1D398D

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

Color values

HEX#1D398D
RGBrgb(29, 57, 141)
HSLhsl(225, 66%, 33%)
HSVhsv(225, 79%, 55%)
CMYKcmyk(79.4%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.05, 21.78, -49.58)
CIE-LCHlch(27.05, 54.16, 293.72°)
OKLaboklab(37.92% -0.0107 -0.1432)
OKLCHoklch(37.92% 0.144 265.7)
XYZxyz(6.7758, 5.1098, 25.8233)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D398D #8D711D
analogous
#1D718D #1D398D #391D8D
triadic
#1D398D #8D1D39 #398D1D
tetradic
#1D398D #8D1D71 #8D711D #1D8D39
square
#1D398D #8D1D71 #8D711D #1D8D39
split-complementary
#1D398D #8D391D #718D1D
monochromatic
#081027 #13245A #1D398D #274EC0 #4B6EDA

Accessibility & contrast

On white

10.38
#1D398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D398D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D398D#FFFFFF#000000##FFFFFF
##1D398D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d398d;
/* rgb */ color: rgb(29, 57, 141);
/* oklch */ color: oklch(37.9% 0.144 265.7);
Tailwind
colors: {
  custom: {
    50: '#6c6eaf',
    500: '#1d398d',
    950: '#000000',
  },
}
SCSS
$custom: #1d398d;
$custom-light: #6c6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d398d",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 225,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37916,
    "c": 0.14359,
    "h": 265.7
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#1D398D
secondary
#BCA04A
accent
#BE3FE9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1D398D

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

Preview Lab → · Contrast checker → · Palette generator →

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