#1A42A1#1A42A1

#1A42A1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.161 H 263.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#1A42A1
RGBrgb(26, 66, 161)
HSLhsl(222, 72%, 37%)
HSVhsv(222, 84%, 63%)
CMYKcmyk(83.9%, 59%, 0%, 36.9%)
CIE-LABlab(31.09, 23.28, -55.22)
CIE-LCHlch(31.09, 59.92, 292.86°)
OKLaboklab(41.44% -0.0179 -0.1596)
OKLCHoklch(41.44% 0.161 263.6)
XYZxyz(8.8049, 6.6882, 34.5382)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A42A1 #A1791A
analogous
#1A86A1 #1A42A1 #351AA1
triadic
#1A42A1 #A11A42 #42A11A
tetradic
#1A42A1 #A11A86 #A1791A #1AA135
square
#1A42A1 #A11A86 #A1791A #1AA135
split-complementary
#1A42A1 #A1351A #86A11A
monochromatic
#091738 #112C6C #1A42A1 #2358D6 #527DE3

Accessibility & contrast

On white

8.98
#1A42A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1A42A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A42A1
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A42A1#FFFFFF#000000##FFFFFF
##1A42A11.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1a42a1;
/* rgb */ color: rgb(26, 66, 161);
/* oklch */ color: oklch(41.4% 0.161 263.6);
Tailwind
colors: {
  custom: {
    50: '#7075be',
    500: '#1a42a1',
    950: '#000000',
  },
}
SCSS
$custom: #1a42a1;
$custom-light: #7075be;
$custom-dark: #000000;
JSON
{
  "hex": "#1a42a1",
  "rgb": {
    "r": 26,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 222.222,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41436,
    "c": 0.16063,
    "h": 263.6
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#1A42A1
secondary
#C6A351
accent
#B939EF
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1A42A1

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

Preview Lab → · Contrast checker → · Palette generator →

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