#1D3D98#1D3D98

#1D3D98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.154 H 265.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#1D3D98
RGBrgb(29, 61, 152)
HSLhsl(224, 68%, 35%)
HSVhsv(224, 81%, 60%)
CMYKcmyk(80.9%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.07, 23.40, -53.04)
CIE-LCHlch(29.07, 57.97, 293.80°)
OKLaboklab(39.72% -0.013 -0.1533)
OKLCHoklch(39.72% 0.154 265.1)
XYZxyz(7.8409, 5.8648, 30.4184)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D98 #98781D
analogous
#1D7A98 #1D3D98 #3A1D98
triadic
#1D3D98 #981D3D #3D981D
tetradic
#1D3D98 #981D7A #98781D #1D983A
square
#1D3D98 #981D7A #98781D #1D983A
split-complementary
#1D3D98 #983A1D #7A981D
monochromatic
#091431 #132865 #1D3D98 #2752CB #5276DE

Accessibility & contrast

On white

9.66
#1D3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1D3D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D98
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D98#FFFFFF#000000##FFFFFF
##1D3D981.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d3d98;
/* rgb */ color: rgb(29, 61, 152);
/* oklch */ color: oklch(39.7% 0.154 265.1);
Tailwind
colors: {
  custom: {
    50: '#6f72b7',
    500: '#1d3d98',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d98;
$custom-light: #6f72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d98",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 224.39,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39718,
    "c": 0.15383,
    "h": 265.1
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#1D3D98
secondary
#C1A350
accent
#BE3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1D3D98

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

Preview Lab → · Contrast checker → · Palette generator →

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