#1D318E#1D318E

#1D318E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.155 H 268.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#1D318E
RGBrgb(29, 49, 142)
HSLhsl(229, 66%, 34%)
HSVhsv(229, 80%, 56%)
CMYKcmyk(79.6%, 65.5%, 0%, 44.3%)
CIE-LABlab(24.98, 27.67, -53.57)
CIE-LCHlch(24.98, 60.29, 297.32°)
OKLaboklab(36.41% -0.0054 -0.155)
OKLCHoklch(36.41% 0.155 268)
XYZxyz(6.4858, 4.4101, 26.0954)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D318E #8E7A1D
analogous
#1D698E #1D318E #421D8E
triadic
#1D318E #8E1D31 #318E1D
tetradic
#1D318E #8E1D69 #8E7A1D #1D8E42
square
#1D318E #8E1D69 #8E7A1D #1D8E42
split-complementary
#1D318E #8E421D #698E1D
monochromatic
#080E28 #131F5B #1D318E #2743C1 #4B64DA

Accessibility & contrast

On white

11.16
#1D318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1D318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D318E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D318E#FFFFFF#000000##FFFFFF
##1D318E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1d318e;
/* rgb */ color: rgb(29, 49, 142);
/* oklch */ color: oklch(36.4% 0.155 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d69b0',
    500: '#1d318e',
    950: '#000000',
  },
}
SCSS
$custom: #1d318e;
$custom-light: #6d69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d318e",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 229.381,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.15509,
    "h": 268
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#1D318E
secondary
#BDA84A
accent
#CB3FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1D318E

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

Preview Lab → · Contrast checker → · Palette generator →

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