#1D40A0#1D40A0

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

Color values

HEX#1D40A0
RGBrgb(29, 64, 160)
HSLhsl(224, 69%, 37%)
HSVhsv(224, 82%, 63%)
CMYKcmyk(81.9%, 60%, 0%, 37.3%)
CIE-LABlab(30.56, 24.51, -55.47)
CIE-LCHlch(30.56, 60.65, 293.84°)
OKLaboklab(41.04% -0.0147 -0.1604)
OKLCHoklch(41.04% 0.161 264.8)
XYZxyz(8.6830, 6.4650, 34.0411)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D40A0 #A07D1D
analogous
#1D82A0 #1D40A0 #3B1DA0
triadic
#1D40A0 #A01D40 #40A01D
tetradic
#1D40A0 #A01D82 #A07D1D #1DA03B
square
#1D40A0 #A01D82 #A07D1D #1DA03B
split-complementary
#1D40A0 #A03B1D #82A01D
monochromatic
#0A1738 #142B6C #1D40A0 #2655D4 #577CE1

Accessibility & contrast

On white

9.16
#1D40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1D40A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D40A0
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D40A0#FFFFFF#000000##FFFFFF
##1D40A01.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1d40a0;
/* rgb */ color: rgb(29, 64, 160);
/* oklch */ color: oklch(41.0% 0.161 264.8);
Tailwind
colors: {
  custom: {
    50: '#7074bd',
    500: '#1d40a0',
    950: '#000000',
  },
}
SCSS
$custom: #1d40a0;
$custom-light: #7074bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1d40a0",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 223.969,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41041,
    "c": 0.16104,
    "h": 264.8
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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