#1D4098#1D4098

#1D4098 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.150 H 264.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#1D4098
RGBrgb(29, 64, 152)
HSLhsl(223, 68%, 35%)
HSVhsv(223, 81%, 60%)
CMYKcmyk(80.9%, 57.9%, 0%, 40.4%)
CIE-LABlab(29.90, 21.34, -51.69)
CIE-LCHlch(29.90, 55.92, 292.43°)
OKLaboklab(40.34% -0.015 -0.1493)
OKLCHoklch(40.34% 0.15 264.2)
XYZxyz(8.0056, 6.1941, 30.4733)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4098 #98751D
analogous
#1D7D98 #1D4098 #371D98
triadic
#1D4098 #981D40 #40981D
tetradic
#1D4098 #981D7D #98751D #1D9837
square
#1D4098 #981D7D #98751D #1D9837
split-complementary
#1D4098 #98371D #7D981D
monochromatic
#091531 #132A65 #1D4098 #2756CB #5279DE

Accessibility & contrast

On white

9.38
#1D4098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1D4098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4098
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4098#FFFFFF#000000##FFFFFF
##1D40981.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1d4098;
/* rgb */ color: rgb(29, 64, 152);
/* oklch */ color: oklch(40.3% 0.150 264.2);
Tailwind
colors: {
  custom: {
    50: '#6e74b7',
    500: '#1d4098',
    950: '#000000',
  },
}
SCSS
$custom: #1d4098;
$custom-light: #6e74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4098",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 222.927,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4034,
    "c": 0.15003,
    "h": 264.2
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#1D4098
secondary
#C1A150
accent
#B93DEB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D4098

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

Preview Lab → · Contrast checker → · Palette generator →

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