#1D3F9F#1D3F9F

#1D3F9F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.161 H 265.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#1D3F9F
RGBrgb(29, 63, 159)
HSLhsl(224, 69%, 37%)
HSVhsv(224, 82%, 62%)
CMYKcmyk(81.8%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.20, 24.80, -55.44)
CIE-LCHlch(30.20, 60.74, 294.10°)
OKLaboklab(40.75% -0.0141 -0.1603)
OKLCHoklch(40.75% 0.161 265)
XYZxyz(8.5400, 6.3184, 33.5636)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F9F #9F7D1D
analogous
#1D809F #1D3F9F #3C1D9F
triadic
#1D3F9F #9F1D3F #3F9F1D
tetradic
#1D3F9F #9F1D80 #9F7D1D #1D9F3C
square
#1D3F9F #9F1D80 #9F7D1D #1D9F3C
split-complementary
#1D3F9F #9F3C1D #809F1D
monochromatic
#0A1637 #142A6B #1D3F9F #2654D3 #567AE0

Accessibility & contrast

On white

9.28
#1D3F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1D3F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F9F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F9F#FFFFFF#000000##FFFFFF
##1D3F9F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1d3f9f;
/* rgb */ color: rgb(29, 63, 159);
/* oklch */ color: oklch(40.7% 0.161 265.0);
Tailwind
colors: {
  custom: {
    50: '#7073bc',
    500: '#1d3f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f9f;
$custom-light: #7073bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f9f",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 224.308,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40749,
    "c": 0.16093,
    "h": 265
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#1D3F9F
secondary
#C4A654
accent
#BE3CEC
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1D3F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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