#1D31A8#1D31A8

#1D31A8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.189 H 267.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#1D31A8
RGBrgb(29, 49, 168)
HSLhsl(231, 71%, 39%)
HSVhsv(231, 83%, 66%)
CMYKcmyk(82.7%, 70.8%, 0%, 34.1%)
CIE-LABlab(27.53, 37.45, -65.27)
CIE-LCHlch(27.53, 75.25, 299.85°)
OKLaboklab(39.04% -0.0072 -0.1891)
OKLCHoklch(39.04% 0.189 267.8)
XYZxyz(8.6704, 5.2840, 37.6011)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D31A8 #A8941D
analogous
#1D76A8 #1D31A8 #4E1DA8
triadic
#1D31A8 #A81D31 #31A81D
tetradic
#1D31A8 #A81D76 #A8941D #1DA84E
square
#1D31A8 #A81D76 #A8941D #1DA84E
split-complementary
#1D31A8 #A84E1D #76A81D
monochromatic
#0B1340 #142274 #1D31A8 #2842DA #5C70E3

Accessibility & contrast

On white

10.21
#1D31A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1D31A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D31A8
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D31A8#FFFFFF#000000##FFFFFF
##1D31A81.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d31a8;
/* rgb */ color: rgb(29, 49, 168);
/* oklch */ color: oklch(39.0% 0.189 267.8);
Tailwind
colors: {
  custom: {
    50: '#7469c3',
    500: '#1d31a8',
    950: '#000000',
  },
}
SCSS
$custom: #1d31a8;
$custom-light: #7469c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d31a8",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 231.367,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39039,
    "c": 0.18928,
    "h": 267.8
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#1D31A8
secondary
#C7B75A
accent
#D43AED
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1D31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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