#1A40A1#1A40A1

#1A40A1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.163 H 264.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#1A40A1
RGBrgb(26, 64, 161)
HSLhsl(223, 72%, 37%)
HSVhsv(223, 84%, 63%)
CMYKcmyk(83.9%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.54, 24.64, -56.10)
CIE-LCHlch(30.54, 61.28, 293.71°)
OKLaboklab(41.03% -0.0167 -0.1623)
OKLCHoklch(41.03% 0.163 264.1)
XYZxyz(8.6901, 6.4586, 34.4999)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A40A1 #A17B1A
analogous
#1A84A1 #1A40A1 #371AA1
triadic
#1A40A1 #A11A40 #40A11A
tetradic
#1A40A1 #A11A84 #A17B1A #1AA137
square
#1A40A1 #A11A84 #A17B1A #1AA137
split-complementary
#1A40A1 #A1371A #84A11A
monochromatic
#091638 #112B6C #1A40A1 #2355D6 #527BE3

Accessibility & contrast

On white

9.16
#1A40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1A40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A40A1
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A40A1#FFFFFF#000000##FFFFFF
##1A40A11.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1a40a1;
/* rgb */ color: rgb(26, 64, 161);
/* oklch */ color: oklch(41.0% 0.163 264.1);
Tailwind
colors: {
  custom: {
    50: '#7074be',
    500: '#1a40a1',
    950: '#000000',
  },
}
SCSS
$custom: #1a40a1;
$custom-light: #7074be;
$custom-dark: #000000;
JSON
{
  "hex": "#1a40a1",
  "rgb": {
    "r": 26,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 223.111,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41027,
    "c": 0.16313,
    "h": 264.1
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#1A40A1
secondary
#C6A551
accent
#BC39EF
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1A40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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