#1D3B98#1D3B98

#1D3B98 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.156 H 265.7°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#1D3B98
RGBrgb(29, 59, 152)
HSLhsl(225, 68%, 35%)
HSVhsv(225, 81%, 60%)
CMYKcmyk(80.9%, 61.2%, 0%, 40.4%)
CIE-LABlab(28.53, 24.77, -53.93)
CIE-LCHlch(28.53, 59.34, 294.67°)
OKLaboklab(39.31% -0.0117 -0.1559)
OKLCHoklch(39.31% 0.156 265.7)
XYZxyz(7.7362, 5.6552, 30.3835)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3B98 #987A1D
analogous
#1D7898 #1D3B98 #3C1D98
triadic
#1D3B98 #981D3B #3B981D
tetradic
#1D3B98 #981D78 #987A1D #1D983C
square
#1D3B98 #981D78 #987A1D #1D983C
split-complementary
#1D3B98 #983C1D #78981D
monochromatic
#091331 #132765 #1D3B98 #274FCB #5274DE

Accessibility & contrast

On white

9.85
#1D3B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1D3B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3B98
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3B98#FFFFFF#000000##FFFFFF
##1D3B981.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3b98;
/* rgb */ color: rgb(29, 59, 152);
/* oklch */ color: oklch(39.3% 0.156 265.7);
Tailwind
colors: {
  custom: {
    50: '#6f70b7',
    500: '#1d3b98',
    950: '#000000',
  },
}
SCSS
$custom: #1d3b98;
$custom-light: #6f70b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3b98",
  "rgb": {
    "r": 29,
    "g": 59,
    "b": 152
  },
  "hsl": {
    "h": 225.366,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39312,
    "c": 0.15635,
    "h": 265.7
  },
  "luminance": 0.05656
}

Semantic roles & 50–950 ramp

primary
#1D3B98
secondary
#C1A550
accent
#C03DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1D3B98

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

Preview Lab → · Contrast checker → · Palette generator →

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