#1D3FA1#1D3FA1

#1D3FA1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.164 H 265.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#1D3FA1
RGBrgb(29, 63, 161)
HSLhsl(225, 69%, 37%)
HSVhsv(225, 82%, 63%)
CMYKcmyk(82%, 60.9%, 0%, 36.9%)
CIE-LABlab(30.37, 25.59, -56.38)
CIE-LCHlch(30.37, 61.91, 294.41°)
OKLaboklab(40.93% -0.014 -0.163)
OKLCHoklch(40.93% 0.164 265.1)
XYZxyz(8.7149, 6.3884, 34.4851)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3FA1 #A17F1D
analogous
#1D81A1 #1D3FA1 #3D1DA1
triadic
#1D3FA1 #A11D3F #3FA11D
tetradic
#1D3FA1 #A11D81 #A17F1D #1DA13D
square
#1D3FA1 #A11D81 #A17F1D #1DA13D
split-complementary
#1D3FA1 #A13D1D #81A11D
monochromatic
#0A1639 #142B6D #1D3FA1 #2653D5 #587BE1

Accessibility & contrast

On white

9.22
#1D3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1D3FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3FA1
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3FA1#FFFFFF#000000##FFFFFF
##1D3FA11.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1d3fa1;
/* rgb */ color: rgb(29, 63, 161);
/* oklch */ color: oklch(40.9% 0.164 265.1);
Tailwind
colors: {
  custom: {
    50: '#7173be',
    500: '#1d3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #1d3fa1;
$custom-light: #7173be;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3fa1",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 224.545,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40929,
    "c": 0.16364,
    "h": 265.1
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#1D3FA1
secondary
#C4A855
accent
#BF3CEC
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1D3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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