#1D399D#1D399D

#1D399D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.166 H 266.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#1D399D
RGBrgb(29, 57, 157)
HSLhsl(227, 69%, 36%)
HSVhsv(227, 82%, 62%)
CMYKcmyk(81.5%, 63.7%, 0%, 38.4%)
CIE-LABlab(28.43, 28.08, -57.12)
CIE-LCHlch(28.43, 63.65, 296.18°)
OKLaboklab(39.38% -0.0105 -0.1653)
OKLCHoklch(39.38% 0.166 266.4)
XYZxyz(8.0535, 5.6208, 32.5522)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D399D #9D811D
analogous
#1D799D #1D399D #411D9D
triadic
#1D399D #9D1D39 #399D1D
tetradic
#1D399D #9D1D79 #9D811D #1D9D41
square
#1D399D #9D1D79 #9D811D #1D9D41
split-complementary
#1D399D #9D411D #799D1D
monochromatic
#0A1336 #132669 #1D399D #274CD1 #5573E0

Accessibility & contrast

On white

9.89
#1D399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1D399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D399D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D399D#FFFFFF#000000##FFFFFF
##1D399D1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d399d;
/* rgb */ color: rgb(29, 57, 157);
/* oklch */ color: oklch(39.4% 0.166 266.4);
Tailwind
colors: {
  custom: {
    50: '#706fbb',
    500: '#1d399d',
    950: '#000000',
  },
}
SCSS
$custom: #1d399d;
$custom-light: #706fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d399d",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 226.875,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39381,
    "c": 0.16563,
    "h": 266.4
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#1D399D
secondary
#C3AA53
accent
#C53CEC
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1D399D

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

Preview Lab → · Contrast checker → · Palette generator →

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