#1D3A7F#1D3A7F

#1D3A7F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.122 H 264.1°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#1D3A7F
RGBrgb(29, 58, 127)
HSLhsl(222, 63%, 31%)
HSVhsv(222, 77%, 50%)
CMYKcmyk(77.2%, 54.3%, 0%, 50.2%)
CIE-LABlab(26.21, 15.45, -42.21)
CIE-LCHlch(26.21, 44.95, 290.11°)
OKLaboklab(36.94% -0.0125 -0.1215)
OKLCHoklch(36.94% 0.122 264.1)
XYZxyz(5.8492, 4.8190, 20.6964)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3A7F #7F621D
analogous
#1D6B7F #1D3A7F #311D7F
triadic
#1D3A7F #7F1D3A #3A7F1D
tetradic
#1D3A7F #7F1D6B #7F621D #1D7F31
square
#1D3A7F #7F1D6B #7F621D #1D7F31
split-complementary
#1D3A7F #7F311D #6B7F1D
monochromatic
#060C1B #12234D #1D3A7F #2851B1 #426ED4

Accessibility & contrast

On white

10.69
#1D3A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1D3A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3A7F
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3A7F#FFFFFF#000000##FFFFFF
##1D3A7F1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4381
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1d3a7f;
/* rgb */ color: rgb(29, 58, 127);
/* oklch */ color: oklch(36.9% 0.122 264.1);
Tailwind
colors: {
  custom: {
    50: '#686fa5',
    500: '#1d3a7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d3a7f;
$custom-light: #686fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3a7f",
  "rgb": {
    "r": 29,
    "g": 58,
    "b": 127
  },
  "hsl": {
    "h": 222.245,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36936,
    "c": 0.12215,
    "h": 264.1
  },
  "luminance": 0.0482
}

Semantic roles & 50–950 ramp

primary
#1D3A7F
secondary
#B29245
accent
#B542E6
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D3A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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