#1D3C98#1D3C98

#1D3C98 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.155 H 265.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#1D3C98
RGBrgb(29, 60, 152)
HSLhsl(225, 68%, 35%)
HSVhsv(225, 81%, 60%)
CMYKcmyk(80.9%, 60.5%, 0%, 40.4%)
CIE-LABlab(28.80, 24.08, -53.48)
CIE-LCHlch(28.80, 58.66, 294.24°)
OKLaboklab(39.52% -0.0124 -0.1546)
OKLCHoklch(39.52% 0.155 265.4)
XYZxyz(7.7880, 5.7590, 30.4008)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3C98 #98791D
analogous
#1D7998 #1D3C98 #3B1D98
triadic
#1D3C98 #981D3C #3C981D
tetradic
#1D3C98 #981D79 #98791D #1D983B
square
#1D3C98 #981D79 #98791D #1D983B
split-complementary
#1D3C98 #983B1D #79981D
monochromatic
#091331 #132865 #1D3C98 #2750CB #5275DE

Accessibility & contrast

On white

9.76
#1D3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1D3C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3C98
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3C98#FFFFFF#000000##FFFFFF
##1D3C981.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d3c98;
/* rgb */ color: rgb(29, 60, 152);
/* oklch */ color: oklch(39.5% 0.155 265.4);
Tailwind
colors: {
  custom: {
    50: '#6f71b7',
    500: '#1d3c98',
    950: '#000000',
  },
}
SCSS
$custom: #1d3c98;
$custom-light: #6f71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3c98",
  "rgb": {
    "r": 29,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 224.878,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39515,
    "c": 0.15509,
    "h": 265.4
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#1D3C98
secondary
#C1A450
accent
#BF3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1D3C98

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

Preview Lab → · Contrast checker → · Palette generator →

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