#1D337F#1D337F

#1D337F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.4% C 0.131 H 267.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#1D337F
RGBrgb(29, 51, 127)
HSLhsl(227, 63%, 31%)
HSVhsv(227, 77%, 50%)
CMYKcmyk(77.2%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.20, 20.37, -45.49)
CIE-LCHlch(24.20, 49.84, 294.13°)
OKLaboklab(35.42% -0.0068 -0.1313)
OKLCHoklch(35.42% 0.131 267)
XYZxyz(5.5200, 4.1606, 20.5867)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D337F #7F691D
analogous
#1D647F #1D337F #381D7F
triadic
#1D337F #7F1D33 #337F1D
tetradic
#1D337F #7F1D64 #7F691D #1D7F38
square
#1D337F #7F1D64 #7F691D #1D7F38
split-complementary
#1D337F #7F381D #647F1D
monochromatic
#060B1B #121F4D #1D337F #2847B1 #4263D4

Accessibility & contrast

On white

11.46
#1D337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1D337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D337F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D337F#FFFFFF#000000##FFFFFF
##1D337F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d337f;
/* rgb */ color: rgb(29, 51, 127);
/* oklch */ color: oklch(35.4% 0.131 267.0);
Tailwind
colors: {
  custom: {
    50: '#696aa5',
    500: '#1d337f',
    950: '#000000',
  },
}
SCSS
$custom: #1d337f;
$custom-light: #696aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d337f",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 226.531,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35415,
    "c": 0.13144,
    "h": 267
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#1D337F
secondary
#B29A45
accent
#C142E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D337F

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

Preview Lab → · Contrast checker → · Palette generator →

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