#1D318B#1D318B

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

Color values

HEX#1D318B
RGBrgb(29, 49, 139)
HSLhsl(229, 65%, 33%)
HSVhsv(229, 79%, 55%)
CMYKcmyk(79.1%, 64.7%, 0%, 45.5%)
CIE-LABlab(24.71, 26.50, -52.16)
CIE-LCHlch(24.71, 58.51, 296.93°)
OKLaboklab(36.12% -0.0053 -0.1509)
OKLCHoklch(36.12% 0.151 268)
XYZxyz(6.2636, 4.3212, 24.9251)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D318B #8B771D
analogous
#1D688B #1D318B #401D8B
triadic
#1D318B #8B1D31 #318B1D
tetradic
#1D318B #8B1D68 #8B771D #1D8B40
square
#1D318B #8B1D68 #8B771D #1D8B40
split-complementary
#1D318B #8B401D #688B1D
monochromatic
#080D26 #121F58 #1D318B #2843BE #4963D9

Accessibility & contrast

On white

11.26
#1D318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D318B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D318B#FFFFFF#000000##FFFFFF
##1D318B1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1d318b;
/* rgb */ color: rgb(29, 49, 139);
/* oklch */ color: oklch(36.1% 0.151 268.0);
Tailwind
colors: {
  custom: {
    50: '#6c69ae',
    500: '#1d318b',
    950: '#000000',
  },
}
SCSS
$custom: #1d318b;
$custom-light: #6c69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d318b",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 229.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36122,
    "c": 0.15096,
    "h": 268
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#1D318B
secondary
#BBA649
accent
#CA3FE8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D318B

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

Preview Lab → · Contrast checker → · Palette generator →

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