#1D45A8#1D45A8

#1D45A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.166 H 264.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#1D45A8
RGBrgb(29, 69, 168)
HSLhsl(223, 71%, 39%)
HSVhsv(223, 83%, 66%)
CMYKcmyk(82.7%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.58, 24.28, -56.99)
CIE-LCHlch(32.58, 61.95, 293.08°)
OKLaboklab(42.76% -0.0174 -0.1647)
OKLCHoklch(42.76% 0.166 264)
XYZxyz(9.7002, 7.3434, 37.9444)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D45A8 #A8801D
analogous
#1D8AA8 #1D45A8 #3A1DA8
triadic
#1D45A8 #A81D45 #45A81D
tetradic
#1D45A8 #A81D8A #A8801D #1DA83A
square
#1D45A8 #A81D8A #A8801D #1DA83A
split-complementary
#1D45A8 #A83A1D #8AA81D
monochromatic
#0B1A40 #143074 #1D45A8 #285BDA #5C83E3

Accessibility & contrast

On white

8.51
#1D45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1D45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D45A8
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D45A8#FFFFFF#000000##FFFFFF
##1D45A81.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1d45a8;
/* rgb */ color: rgb(29, 69, 168);
/* oklch */ color: oklch(42.8% 0.166 264.0);
Tailwind
colors: {
  custom: {
    50: '#7278c3',
    500: '#1d45a8',
    950: '#000000',
  },
}
SCSS
$custom: #1d45a8;
$custom-light: #7278c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d45a8",
  "rgb": {
    "r": 29,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 222.734,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42761,
    "c": 0.16567,
    "h": 264
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#1D45A8
secondary
#C7A85A
accent
#BA3AED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1D45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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