#1D318A#1D318A

#1D318A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.150 H 268.0°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#1D318A
RGBrgb(29, 49, 138)
HSLhsl(229, 65%, 33%)
HSVhsv(229, 79%, 54%)
CMYKcmyk(79%, 64.5%, 0%, 45.9%)
CIE-LABlab(24.61, 26.11, -51.69)
CIE-LCHlch(24.61, 57.91, 296.80°)
OKLaboklab(36.03% -0.0053 -0.1495)
OKLCHoklch(36.03% 0.15 268)
XYZxyz(6.1909, 4.2921, 24.5420)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D318A #8A761D
analogous
#1D678A #1D318A #401D8A
triadic
#1D318A #8A1D31 #318A1D
tetradic
#1D318A #8A1D67 #8A761D #1D8A40
square
#1D318A #8A1D67 #8A761D #1D8A40
split-complementary
#1D318A #8A401D #678A1D
monochromatic
#080D25 #121F57 #1D318A #2843BD #4963D9

Accessibility & contrast

On white

11.30
#1D318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1D318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D318A
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D318A#FFFFFF#000000##FFFFFF
##1D318A1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d318a;
/* rgb */ color: rgb(29, 49, 138);
/* oklch */ color: oklch(36.0% 0.150 268.0);
Tailwind
colors: {
  custom: {
    50: '#6c69ad',
    500: '#1d318a',
    950: '#000000',
  },
}
SCSS
$custom: #1d318a;
$custom-light: #6c69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d318a",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 228.991,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36026,
    "c": 0.14958,
    "h": 268
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#1D318A
secondary
#BBA648
accent
#C940E8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D318A

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

Preview Lab → · Contrast checker → · Palette generator →

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