#1A40A0#1A40A0

#1A40A0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.162 H 264.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#1A40A0
RGBrgb(26, 64, 160)
HSLhsl(223, 72%, 36%)
HSVhsv(223, 84%, 63%)
CMYKcmyk(83.8%, 60%, 0%, 37.3%)
CIE-LABlab(30.46, 24.25, -55.64)
CIE-LCHlch(30.46, 60.69, 293.55°)
OKLaboklab(40.94% -0.0167 -0.1609)
OKLCHoklch(40.94% 0.162 264.1)
XYZxyz(8.6023, 6.4234, 34.0373)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A40A0 #A07A1A
analogous
#1A83A0 #1A40A0 #371AA0
triadic
#1A40A0 #A01A40 #40A01A
tetradic
#1A40A0 #A01A83 #A07A1A #1AA037
square
#1A40A0 #A01A83 #A07A1A #1AA037
split-complementary
#1A40A0 #A0371A #83A01A
monochromatic
#091637 #112B6B #1A40A0 #2355D5 #527BE3

Accessibility & contrast

On white

9.19
#1A40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1A40A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A40A0
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A40A0#FFFFFF#000000##FFFFFF
##1A40A01.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1a40a0;
/* rgb */ color: rgb(26, 64, 160);
/* oklch */ color: oklch(40.9% 0.162 264.1);
Tailwind
colors: {
  custom: {
    50: '#7074bd',
    500: '#1a40a0',
    950: '#000000',
  },
}
SCSS
$custom: #1a40a0;
$custom-light: #7074bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1a40a0",
  "rgb": {
    "r": 26,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 222.985,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40938,
    "c": 0.16178,
    "h": 264.1
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#1A40A0
secondary
#C5A450
accent
#BB39EF
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1A40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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