#1D318D#1D318D

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

Color values

HEX#1D318D
RGBrgb(29, 49, 141)
HSLhsl(229, 66%, 33%)
HSVhsv(229, 79%, 55%)
CMYKcmyk(79.4%, 65.2%, 0%, 44.7%)
CIE-LABlab(24.89, 27.28, -53.10)
CIE-LCHlch(24.89, 59.70, 297.19°)
OKLaboklab(36.32% -0.0054 -0.1536)
OKLCHoklch(36.32% 0.154 268)
XYZxyz(6.4111, 4.3802, 25.7017)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D318D #8D791D
analogous
#1D698D #1D318D #411D8D
triadic
#1D318D #8D1D31 #318D1D
tetradic
#1D318D #8D1D69 #8D791D #1D8D41
square
#1D318D #8D1D69 #8D791D #1D8D41
split-complementary
#1D318D #8D411D #698D1D
monochromatic
#080E27 #131F5A #1D318D #2743C0 #4B64DA

Accessibility & contrast

On white

11.19
#1D318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D318D
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D318D#FFFFFF#000000##FFFFFF
##1D318D1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1d318d;
/* rgb */ color: rgb(29, 49, 141);
/* oklch */ color: oklch(36.3% 0.154 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d69af',
    500: '#1d318d',
    950: '#000000',
  },
}
SCSS
$custom: #1d318d;
$custom-light: #6d69af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d318d",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 229.286,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36315,
    "c": 0.15372,
    "h": 268
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#1D318D
secondary
#BCA84A
accent
#CA3FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D318D

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

Preview Lab → · Contrast checker → · Palette generator →

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