#1D3998#1D3998

#1D3998 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.159 H 266.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1D3998
RGBrgb(29, 57, 152)
HSLhsl(226, 68%, 35%)
HSVhsv(226, 81%, 60%)
CMYKcmyk(80.9%, 62.5%, 0%, 40.4%)
CIE-LABlab(27.99, 26.13, -54.80)
CIE-LCHlch(27.99, 60.71, 295.49°)
OKLaboklab(38.91% -0.0105 -0.1585)
OKLCHoklch(38.91% 0.159 266.2)
XYZxyz(7.6353, 5.4536, 30.3499)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3998 #987C1D
analogous
#1D7798 #1D3998 #3E1D98
triadic
#1D3998 #981D39 #39981D
tetradic
#1D3998 #981D77 #987C1D #1D983E
square
#1D3998 #981D77 #987C1D #1D983E
split-complementary
#1D3998 #983E1D #77981D
monochromatic
#091231 #132665 #1D3998 #274CCB #5271DE

Accessibility & contrast

On white

10.04
#1D3998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1D3998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3998
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3998#FFFFFF#000000##FFFFFF
##1D39981.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d3998;
/* rgb */ color: rgb(29, 57, 152);
/* oklch */ color: oklch(38.9% 0.159 266.2);
Tailwind
colors: {
  custom: {
    50: '#6f6fb7',
    500: '#1d3998',
    950: '#000000',
  },
}
SCSS
$custom: #1d3998;
$custom-light: #6f6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3998",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 226.341,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38914,
    "c": 0.15886,
    "h": 266.2
  },
  "luminance": 0.05454
}

Semantic roles & 50–950 ramp

primary
#1D3998
secondary
#C1A750
accent
#C33DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1D3998

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

Preview Lab → · Contrast checker → · Palette generator →

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