#1D317E#1D317E

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

Color values

HEX#1D317E
RGBrgb(29, 49, 126)
HSLhsl(228, 63%, 30%)
HSVhsv(228, 77%, 49%)
CMYKcmyk(77%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.55, 21.38, -45.91)
CIE-LCHlch(23.55, 50.64, 294.97°)
OKLaboklab(34.91% -0.0053 -0.1325)
OKLCHoklch(34.91% 0.133 267.7)
XYZxyz(5.3696, 3.9636, 20.2167)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D317E #7E6A1D
analogous
#1D617E #1D317E #391D7E
triadic
#1D317E #7E1D31 #317E1D
tetradic
#1D317E #7E1D61 #7E6A1D #1D7E39
square
#1D317E #7E1D61 #7E6A1D #1D7E39
split-complementary
#1D317E #7E391D #617E1D
monochromatic
#060A1B #121E4C #1D317E #2844B0 #4260D3

Accessibility & contrast

On white

11.71
#1D317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1D317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D317E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D317E#FFFFFF#000000##FFFFFF
##1D317E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d317e;
/* rgb */ color: rgb(29, 49, 126);
/* oklch */ color: oklch(34.9% 0.133 267.7);
Tailwind
colors: {
  custom: {
    50: '#6968a4',
    500: '#1d317e',
    950: '#000000',
  },
}
SCSS
$custom: #1d317e;
$custom-light: #6968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d317e",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 227.629,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.13264,
    "h": 267.7
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D317E

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

Preview Lab → · Contrast checker → · Palette generator →

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