#1D318C#1D318C

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

Color values

HEX#1D318C
RGBrgb(29, 49, 140)
HSLhsl(229, 66%, 33%)
HSVhsv(229, 79%, 55%)
CMYKcmyk(79.3%, 65%, 0%, 45.1%)
CIE-LABlab(24.80, 26.89, -52.63)
CIE-LCHlch(24.80, 59.10, 297.06°)
OKLaboklab(36.22% -0.0054 -0.1522)
OKLCHoklch(36.22% 0.152 268)
XYZxyz(6.3370, 4.3506, 25.3116)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D318C #8C781D
analogous
#1D688C #1D318C #401D8C
triadic
#1D318C #8C1D31 #318C1D
tetradic
#1D318C #8C1D68 #8C781D #1D8C40
square
#1D318C #8C1D68 #8C781D #1D8C40
split-complementary
#1D318C #8C401D #688C1D
monochromatic
#080E27 #121F59 #1D318C #2843BF #4A64D9

Accessibility & contrast

On white

11.23
#1D318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1D318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D318C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D318C#FFFFFF#000000##FFFFFF
##1D318C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1d318c;
/* rgb */ color: rgb(29, 49, 140);
/* oklch */ color: oklch(36.2% 0.152 268.0);
Tailwind
colors: {
  custom: {
    50: '#6c69ae',
    500: '#1d318c',
    950: '#000000',
  },
}
SCSS
$custom: #1d318c;
$custom-light: #6c69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d318c",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 229.189,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36218,
    "c": 0.15234,
    "h": 268
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#1D318C
secondary
#BCA749
accent
#CA3FE9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D318C

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

Preview Lab → · Contrast checker → · Palette generator →

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