#1D317D#1D317D

#1D317D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.131 H 267.7°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#1D317D
RGBrgb(29, 49, 125)
HSLhsl(228, 62%, 30%)
HSVhsv(228, 77%, 49%)
CMYKcmyk(76.8%, 60.8%, 0%, 51%)
CIE-LABlab(23.47, 20.98, -45.42)
CIE-LCHlch(23.47, 50.03, 294.79°)
OKLaboklab(34.82% -0.0053 -0.1311)
OKLCHoklch(34.82% 0.131 267.7)
XYZxyz(5.3054, 3.9379, 19.8786)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D317D #7D691D
analogous
#1D617D #1D317D #391D7D
triadic
#1D317D #7D1D31 #317D1D
tetradic
#1D317D #7D1D61 #7D691D #1D7D39
square
#1D317D #7D1D61 #7D691D #1D7D39
split-complementary
#1D317D #7D391D #617D1D
monochromatic
#060A1A #111E4B #1D317D #2944AF #4160D3

Accessibility & contrast

On white

11.75
#1D317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D317D
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D317D#FFFFFF#000000##FFFFFF
##1D317D1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d317d;
/* rgb */ color: rgb(29, 49, 125);
/* oklch */ color: oklch(34.8% 0.131 267.7);
Tailwind
colors: {
  custom: {
    50: '#6868a3',
    500: '#1d317d',
    950: '#000000',
  },
}
SCSS
$custom: #1d317d;
$custom-light: #6868a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d317d",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 227.5,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34816,
    "c": 0.13119,
    "h": 267.7
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#1D317D
secondary
#B19A45
accent
#C342E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D317D

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

Preview Lab → · Contrast checker → · Palette generator →

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