#1D3FA8#1D3FA8

#1D3FA8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.173 H 265.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#1D3FA8
RGBrgb(29, 63, 168)
HSLhsl(225, 71%, 39%)
HSVhsv(225, 83%, 66%)
CMYKcmyk(82.7%, 62.5%, 0%, 34.1%)
CIE-LABlab(30.98, 28.32, -59.60)
CIE-LCHlch(30.98, 65.99, 295.41°)
OKLaboklab(41.57% -0.0139 -0.1725)
OKLCHoklch(41.57% 0.173 265.4)
XYZxyz(9.3496, 6.6423, 37.8275)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3FA8 #A8861D
analogous
#1D84A8 #1D3FA8 #411DA8
triadic
#1D3FA8 #A81D3F #3FA81D
tetradic
#1D3FA8 #A81D84 #A8861D #1DA841
square
#1D3FA8 #A81D84 #A8861D #1DA841
split-complementary
#1D3FA8 #A8411D #84A81D
monochromatic
#0B1840 #142B74 #1D3FA8 #2854DA #5C7DE3

Accessibility & contrast

On white

9.02
#1D3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1D3FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3FA8
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3FA8#FFFFFF#000000##FFFFFF
##1D3FA81.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1d3fa8;
/* rgb */ color: rgb(29, 63, 168);
/* oklch */ color: oklch(41.6% 0.173 265.4);
Tailwind
colors: {
  custom: {
    50: '#7373c3',
    500: '#1d3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1d3fa8;
$custom-light: #7373c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3fa8",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 225.324,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41568,
    "c": 0.17305,
    "h": 265.4
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#1D3FA8
secondary
#C7AC5A
accent
#C23AED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1D3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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