#1D42A8#1D42A8

#1D42A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.169 H 264.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#1D42A8
RGBrgb(29, 66, 168)
HSLhsl(224, 71%, 39%)
HSVhsv(224, 83%, 66%)
CMYKcmyk(82.7%, 60.7%, 0%, 34.1%)
CIE-LABlab(31.77, 26.30, -58.31)
CIE-LCHlch(31.77, 63.97, 294.28°)
OKLaboklab(42.16% -0.0156 -0.1687)
OKLCHoklch(42.16% 0.169 264.7)
XYZxyz(9.5203, 6.9836, 37.8844)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D42A8 #A8831D
analogous
#1D87A8 #1D42A8 #3D1DA8
triadic
#1D42A8 #A81D42 #42A81D
tetradic
#1D42A8 #A81D87 #A8831D #1DA83D
square
#1D42A8 #A81D87 #A8831D #1DA83D
split-complementary
#1D42A8 #A83D1D #87A81D
monochromatic
#0B1940 #142D74 #1D42A8 #2858DA #5C80E3

Accessibility & contrast

On white

8.76
#1D42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1D42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D42A8
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D42A8#FFFFFF#000000##FFFFFF
##1D42A81.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1d42a8;
/* rgb */ color: rgb(29, 66, 168);
/* oklch */ color: oklch(42.2% 0.169 264.7);
Tailwind
colors: {
  custom: {
    50: '#7275c3',
    500: '#1d42a8',
    950: '#000000',
  },
}
SCSS
$custom: #1d42a8;
$custom-light: #7275c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d42a8",
  "rgb": {
    "r": 29,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 224.029,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42157,
    "c": 0.16938,
    "h": 264.7
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

primary
#1D42A8
secondary
#C7AA5A
accent
#BE3AED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1D42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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