#1D317F#1D317F

#1D317F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 267.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1D317F
RGBrgb(29, 49, 127)
HSLhsl(228, 63%, 31%)
HSVhsv(228, 77%, 50%)
CMYKcmyk(77.2%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.64, 21.77, -46.40)
CIE-LCHlch(23.64, 51.25, 295.14°)
OKLaboklab(35% -0.0053 -0.134)
OKLCHoklch(35% 0.134 267.7)
XYZxyz(5.4344, 3.9896, 20.5582)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D317F #7F6B1D
analogous
#1D627F #1D317F #3A1D7F
triadic
#1D317F #7F1D31 #317F1D
tetradic
#1D317F #7F1D62 #7F6B1D #1D7F3A
square
#1D317F #7F1D62 #7F6B1D #1D7F3A
split-complementary
#1D317F #7F3A1D #627F1D
monochromatic
#060B1B #121E4D #1D317F #2844B1 #4260D4

Accessibility & contrast

On white

11.68
#1D317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1D317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D317F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D317F#FFFFFF#000000##FFFFFF
##1D317F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1d317f;
/* rgb */ color: rgb(29, 49, 127);
/* oklch */ color: oklch(35.0% 0.134 267.7);
Tailwind
colors: {
  custom: {
    50: '#6968a5',
    500: '#1d317f',
    950: '#000000',
  },
}
SCSS
$custom: #1d317f;
$custom-light: #6968a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d317f",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 227.755,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34998,
    "c": 0.13407,
    "h": 267.7
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#1D317F
secondary
#B29C45
accent
#C442E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D317F

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

Preview Lab → · Contrast checker → · Palette generator →

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