#1D3E98#1D3E98

#1D3E98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.153 H 264.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#1D3E98
RGBrgb(29, 62, 152)
HSLhsl(224, 68%, 35%)
HSVhsv(224, 81%, 60%)
CMYKcmyk(80.9%, 59.2%, 0%, 40.4%)
CIE-LABlab(29.34, 22.71, -52.59)
CIE-LCHlch(29.34, 57.29, 293.36°)
OKLaboklab(39.92% -0.0137 -0.1519)
OKLCHoklch(39.92% 0.153 264.9)
XYZxyz(7.8948, 5.9725, 30.4364)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3E98 #98771D
analogous
#1D7C98 #1D3E98 #391D98
triadic
#1D3E98 #981D3E #3E981D
tetradic
#1D3E98 #981D7C #98771D #1D9839
square
#1D3E98 #981D7C #98771D #1D9839
split-complementary
#1D3E98 #98391D #7C981D
monochromatic
#091431 #132965 #1D3E98 #2753CB #5277DE

Accessibility & contrast

On white

9.57
#1D3E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1D3E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3E98
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3E98#FFFFFF#000000##FFFFFF
##1D3E981.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d3e98;
/* rgb */ color: rgb(29, 62, 152);
/* oklch */ color: oklch(39.9% 0.153 264.9);
Tailwind
colors: {
  custom: {
    50: '#6e72b7',
    500: '#1d3e98',
    950: '#000000',
  },
}
SCSS
$custom: #1d3e98;
$custom-light: #6e72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3e98",
  "rgb": {
    "r": 29,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 223.902,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.15257,
    "h": 264.9
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#1D3E98
secondary
#C1A350
accent
#BC3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D3E98

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

Preview Lab → · Contrast checker → · Palette generator →

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