#1D317A#1D317A

#1D317A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.5% C 0.127 H 267.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#1D317A
RGBrgb(29, 49, 122)
HSLhsl(227, 62%, 30%)
HSVhsv(227, 76%, 48%)
CMYKcmyk(76.2%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.21, 19.78, -43.93)
CIE-LCHlch(23.21, 48.18, 294.24°)
OKLaboklab(34.55% -0.0054 -0.1267)
OKLCHoklch(34.55% 0.127 267.6)
XYZxyz(5.1166, 3.8624, 18.8844)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D317A #7A661D
analogous
#1D607A #1D317A #381D7A
triadic
#1D317A #7A1D31 #317A1D
tetradic
#1D317A #7A1D60 #7A661D #1D7A38
square
#1D317A #7A1D60 #7A661D #1D7A38
split-complementary
#1D317A #7A381D #607A1D
monochromatic
#060A19 #111D49 #1D317A #2945AB #405FD2

Accessibility & contrast

On white

11.85
#1D317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1D317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D317A
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D317A#FFFFFF#000000##FFFFFF
##1D317A1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d317a;
/* rgb */ color: rgb(29, 49, 122);
/* oklch */ color: oklch(34.5% 0.127 267.6);
Tailwind
colors: {
  custom: {
    50: '#6868a1',
    500: '#1d317a',
    950: '#000000',
  },
}
SCSS
$custom: #1d317a;
$custom-light: #6868a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d317a",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 227.097,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34547,
    "c": 0.12683,
    "h": 267.6
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#1D317A
secondary
#AE9745
accent
#C243E5
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D317A

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

Preview Lab → · Contrast checker → · Palette generator →

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