#1D40B3#1D40B3

#1D40B3 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.186 H 265.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#1D40B3
RGBrgb(29, 64, 179)
HSLhsl(226, 72%, 41%)
HSVhsv(226, 84%, 70%)
CMYKcmyk(83.8%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.22, 31.88, -64.14)
CIE-LCHlch(32.22, 71.63, 296.43°)
OKLaboklab(42.79% -0.0145 -0.1858)
OKLCHoklch(42.79% 0.186 265.5)
XYZxyz(10.4739, 7.1814, 43.4732)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D40B3 #B3901D
analogous
#1D8BB3 #1D40B3 #451DB3
triadic
#1D40B3 #B31D40 #40B31D
tetradic
#1D40B3 #B31D8B #B3901D #1DB345
square
#1D40B3 #B31D8B #B3901D #1DB345
split-complementary
#1D40B3 #B3451D #8BB31D
monochromatic
#0C1A4A #142D7E #1D40B3 #3058DD #6483E6

Accessibility & contrast

On white

8.62
#1D40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1D40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D40B3
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D40B3#FFFFFF#000000##FFFFFF
##1D40B31.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1d40b3;
/* rgb */ color: rgb(29, 64, 179);
/* oklch */ color: oklch(42.8% 0.186 265.5);
Tailwind
colors: {
  custom: {
    50: '#7574cb',
    500: '#1d40b3',
    950: '#000000',
  },
}
SCSS
$custom: #1d40b3;
$custom-light: #7574cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d40b3",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 226,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42786,
    "c": 0.18633,
    "h": 265.5
  },
  "luminance": 0.07183
}

Semantic roles & 50–950 ramp

primary
#1D40B3
secondary
#CBB261
accent
#C439EF
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1D40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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