#1D3F9A#1D3F9A

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

Color values

HEX#1D3F9A
RGBrgb(29, 63, 154)
HSLhsl(224, 68%, 36%)
HSVhsv(224, 81%, 60%)
CMYKcmyk(81.2%, 59.1%, 0%, 39.6%)
CIE-LABlab(29.78, 22.82, -53.09)
CIE-LCHlch(29.78, 57.79, 293.26°)
OKLaboklab(40.31% -0.0143 -0.1534)
OKLCHoklch(40.31% 0.154 264.7)
XYZxyz(8.1149, 6.1484, 31.3246)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F9A #9A781D
analogous
#1D7D9A #1D3F9A #391D9A
triadic
#1D3F9A #9A1D3F #3F9A1D
tetradic
#1D3F9A #9A1D7D #9A781D #1D9A39
square
#1D3F9A #9A1D7D #9A781D #1D9A39
split-complementary
#1D3F9A #9A391D #7D9A1D
monochromatic
#0A1533 #132A66 #1D3F9A #2754CE #5379DF

Accessibility & contrast

On white

9.42
#1D3F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1D3F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F9A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F9A#FFFFFF#000000##FFFFFF
##1D3F9A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1d3f9a;
/* rgb */ color: rgb(29, 63, 154);
/* oklch */ color: oklch(40.3% 0.154 264.7);
Tailwind
colors: {
  custom: {
    50: '#6f73b9',
    500: '#1d3f9a',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f9a;
$custom-light: #6f73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f9a",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 223.68,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40306,
    "c": 0.15406,
    "h": 264.7
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#1D3F9A
secondary
#C2A351
accent
#BC3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1D3F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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