#1D3F98#1D3F98

#1D3F98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.151 H 264.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#1D3F98
RGBrgb(29, 63, 152)
HSLhsl(223, 68%, 35%)
HSVhsv(223, 81%, 60%)
CMYKcmyk(80.9%, 58.6%, 0%, 40.4%)
CIE-LABlab(29.62, 22.03, -52.14)
CIE-LCHlch(29.62, 56.60, 292.90°)
OKLaboklab(40.13% -0.0144 -0.1506)
OKLCHoklch(40.13% 0.151 264.6)
XYZxyz(7.9497, 6.0823, 30.4547)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F98 #98761D
analogous
#1D7C98 #1D3F98 #391D98
triadic
#1D3F98 #981D3F #3F981D
tetradic
#1D3F98 #981D7C #98761D #1D9839
square
#1D3F98 #981D7C #98761D #1D9839
split-complementary
#1D3F98 #98391D #7C981D
monochromatic
#091431 #132A65 #1D3F98 #2754CB #5278DE

Accessibility & contrast

On white

9.47
#1D3F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1D3F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F98
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F98#FFFFFF#000000##FFFFFF
##1D3F981.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d3f98;
/* rgb */ color: rgb(29, 63, 152);
/* oklch */ color: oklch(40.1% 0.151 264.6);
Tailwind
colors: {
  custom: {
    50: '#6e73b7',
    500: '#1d3f98',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f98;
$custom-light: #6e73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f98",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 223.415,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40131,
    "c": 0.15129,
    "h": 264.6
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

primary
#1D3F98
secondary
#C1A250
accent
#BB3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D3F98

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

Preview Lab → · Contrast checker → · Palette generator →

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