#1D42B0#1D42B0

#1D42B0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.180 H 265.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#1D42B0
RGBrgb(29, 66, 176)
HSLhsl(225, 72%, 40%)
HSVhsv(225, 84%, 69%)
CMYKcmyk(83.5%, 62.5%, 0%, 31%)
CIE-LABlab(32.46, 29.41, -61.96)
CIE-LCHlch(32.46, 68.58, 295.39°)
OKLaboklab(42.89% -0.0155 -0.1793)
OKLCHoklch(42.89% 0.18 265.1)
XYZxyz(10.2886, 7.2910, 41.9309)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D42B0 #B08B1D
analogous
#1D8BB0 #1D42B0 #421DB0
triadic
#1D42B0 #B01D42 #42B01D
tetradic
#1D42B0 #B01D8B #B08B1D #1DB042
square
#1D42B0 #B01D8B #B08B1D #1DB042
split-complementary
#1D42B0 #B0421D #8BB01D
monochromatic
#0C1B47 #142E7B #1D42B0 #2E5ADD #6283E5

Accessibility & contrast

On white

8.54
#1D42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1D42B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D42B0
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D42B0#FFFFFF#000000##FFFFFF
##1D42B01.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1d42b0;
/* rgb */ color: rgb(29, 66, 176);
/* oklch */ color: oklch(42.9% 0.180 265.1);
Tailwind
colors: {
  custom: {
    50: '#7476c9',
    500: '#1d42b0',
    950: '#000000',
  },
}
SCSS
$custom: #1d42b0;
$custom-light: #7476c9;
$custom-dark: #000000;
JSON
{
  "hex": "#1d42b0",
  "rgb": {
    "r": 29,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 224.898,
    "s": 71.707,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42885,
    "c": 0.18002,
    "h": 265.1
  },
  "luminance": 0.07292
}

Semantic roles & 50–950 ramp

primary
#1D42B0
secondary
#CAAF5F
accent
#C139EE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1D42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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