#1B42AD#1B42AD

#1B42AD is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.177 H 264.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#1B42AD
RGBrgb(27, 66, 173)
HSLhsl(224, 73%, 39%)
HSVhsv(224, 84%, 68%)
CMYKcmyk(84.4%, 61.8%, 0%, 32.2%)
CIE-LABlab(32.14, 28.09, -60.70)
CIE-LCHlch(32.14, 66.89, 294.83°)
OKLaboklab(42.55% -0.0169 -0.1757)
OKLCHoklch(42.55% 0.177 264.5)
XYZxyz(9.9404, 7.1453, 40.3823)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B42AD #AD861B
analogous
#1B8BAD #1B42AD #3D1BAD
triadic
#1B42AD #AD1B42 #42AD1B
tetradic
#1B42AD #AD1B8B #AD861B #1BAD3D
square
#1B42AD #AD1B8B #AD861B #1BAD3D
split-complementary
#1B42AD #AD3D1B #8BAD1B
monochromatic
#0A1A43 #132E78 #1B42AD #2858DD #5D81E6

Accessibility & contrast

On white

8.64
#1B42AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1B42AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B42AD
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B42AD#FFFFFF#000000##FFFFFF
##1B42AD1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1b42ad;
/* rgb */ color: rgb(27, 66, 173);
/* oklch */ color: oklch(42.5% 0.177 264.5);
Tailwind
colors: {
  custom: {
    50: '#7375c6',
    500: '#1b42ad',
    950: '#000000',
  },
}
SCSS
$custom: #1b42ad;
$custom-light: #7375c6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b42ad",
  "rgb": {
    "r": 27,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 223.973,
    "s": 73,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42545,
    "c": 0.17652,
    "h": 264.5
  },
  "luminance": 0.07147
}

Semantic roles & 50–950 ramp

primary
#1B42AD
secondary
#CAAC5A
accent
#BF38F0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1B42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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