#1D3D9E#1D3D9E

#1D3D9E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.162 H 265.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#1D3D9E
RGBrgb(29, 61, 158)
HSLhsl(225, 69%, 37%)
HSVhsv(225, 82%, 62%)
CMYKcmyk(81.6%, 61.4%, 0%, 38%)
CIE-LABlab(29.58, 25.76, -55.86)
CIE-LCHlch(29.58, 61.51, 294.76°)
OKLaboklab(40.26% -0.0129 -0.1615)
OKLCHoklch(40.26% 0.162 265.4)
XYZxyz(8.3448, 6.0663, 33.0722)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D9E #9E7E1D
analogous
#1D7E9E #1D3D9E #3D1D9E
triadic
#1D3D9E #9E1D3D #3D9E1D
tetradic
#1D3D9E #9E1D7E #9E7E1D #1D9E3D
square
#1D3D9E #9E1D7E #9E7E1D #1D9E3D
split-complementary
#1D3D9E #9E3D1D #7E9E1D
monochromatic
#0A1537 #14296A #1D3D9E #2651D2 #5678E0

Accessibility & contrast

On white

9.49
#1D3D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1D3D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D9E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D9E#FFFFFF#000000##FFFFFF
##1D3D9E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1d3d9e;
/* rgb */ color: rgb(29, 61, 158);
/* oklch */ color: oklch(40.3% 0.162 265.4);
Tailwind
colors: {
  custom: {
    50: '#7072bc',
    500: '#1d3d9e',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d9e;
$custom-light: #7072bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d9e",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 158
  },
  "hsl": {
    "h": 225.116,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40258,
    "c": 0.16205,
    "h": 265.4
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#1D3D9E
secondary
#C3A854
accent
#C03CEC
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1D3D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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