#1D40A6#1D40A6

#1D40A6 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.169 H 265.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#1D40A6
RGBrgb(29, 64, 166)
HSLhsl(225, 70%, 38%)
HSVhsv(225, 83%, 65%)
CMYKcmyk(82.5%, 61.4%, 0%, 34.9%)
CIE-LABlab(31.07, 26.87, -58.25)
CIE-LCHlch(31.07, 64.15, 294.76°)
OKLaboklab(41.58% -0.0145 -0.1685)
OKLCHoklch(41.58% 0.169 265.1)
XYZxyz(9.2206, 6.6801, 36.8724)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D40A6 #A6831D
analogous
#1D84A6 #1D40A6 #3F1DA6
triadic
#1D40A6 #A61D40 #40A61D
tetradic
#1D40A6 #A61D84 #A6831D #1DA63F
square
#1D40A6 #A61D84 #A6831D #1DA63F
split-complementary
#1D40A6 #A63F1D #84A61D
monochromatic
#0B183E #142C72 #1D40A6 #2754D9 #5B7EE2

Accessibility & contrast

On white

8.99
#1D40A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1D40A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D40A6
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D40A6#FFFFFF#000000##FFFFFF
##1D40A61.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1d40a6;
/* rgb */ color: rgb(29, 64, 166);
/* oklch */ color: oklch(41.6% 0.169 265.1);
Tailwind
colors: {
  custom: {
    50: '#7274c1',
    500: '#1d40a6',
    950: '#000000',
  },
}
SCSS
$custom: #1d40a6;
$custom-light: #7274c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d40a6",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 224.672,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4158,
    "c": 0.16915,
    "h": 265.1
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#1D40A6
secondary
#C6AA59
accent
#BF3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1D40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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