#1D40A1#1D40A1

#1D40A1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.162 H 264.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#1D40A1
RGBrgb(29, 64, 161)
HSLhsl(224, 69%, 37%)
HSVhsv(224, 82%, 63%)
CMYKcmyk(82%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.64, 24.91, -55.94)
CIE-LCHlch(30.64, 61.23, 294.00°)
OKLaboklab(41.13% -0.0146 -0.1617)
OKLCHoklch(41.13% 0.162 264.8)
XYZxyz(8.7708, 6.5002, 34.5037)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D40A1 #A17E1D
analogous
#1D82A1 #1D40A1 #3C1DA1
triadic
#1D40A1 #A11D40 #40A11D
tetradic
#1D40A1 #A11D82 #A17E1D #1DA13C
square
#1D40A1 #A11D82 #A17E1D #1DA13C
split-complementary
#1D40A1 #A13C1D #82A11D
monochromatic
#0A1739 #142B6D #1D40A1 #2655D5 #587CE1

Accessibility & contrast

On white

9.13
#1D40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1D40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D40A1
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D40A1#FFFFFF#000000##FFFFFF
##1D40A11.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1d40a1;
/* rgb */ color: rgb(29, 64, 161);
/* oklch */ color: oklch(41.1% 0.162 264.8);
Tailwind
colors: {
  custom: {
    50: '#7174be',
    500: '#1d40a1',
    950: '#000000',
  },
}
SCSS
$custom: #1d40a1;
$custom-light: #7174be;
$custom-dark: #000000;
JSON
{
  "hex": "#1d40a1",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 224.091,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4113,
    "c": 0.1624,
    "h": 264.8
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#1D40A1
secondary
#C4A755
accent
#BD3CEC
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1D40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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