#1A4787#1A4787

#1A4787 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.118 H 257.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#1A4787
RGBrgb(26, 71, 135)
HSLhsl(215, 68%, 32%)
HSVhsv(215, 81%, 53%)
CMYKcmyk(80.7%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.58, 9.32, -40.16)
CIE-LCHlch(30.58, 41.23, 283.06°)
OKLaboklab(40.43% -0.0247 -0.1152)
OKLCHoklch(40.43% 0.118 257.9)
XYZxyz(7.0508, 6.4745, 23.7951)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A4787 #875A1A
analogous
#1A7E87 #1A4787 #231A87
triadic
#1A4787 #871A47 #47871A
tetradic
#1A4787 #871A7E #875A1A #1A8723
square
#1A4787 #871A7E #875A1A #1A8723
split-complementary
#1A4787 #87231A #7E871A
monochromatic
#061120 #102C54 #1A4787 #2462BA #4180DA

Accessibility & contrast

On white

9.15
#1A4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1A4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A4787
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A4787#FFFFFF#000000##FFFFFF
##1A47871.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D89
Deuteranopia (green-blind)
#094386
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1a4787;
/* rgb */ color: rgb(26, 71, 135);
/* oklch */ color: oklch(40.4% 0.118 257.9);
Tailwind
colors: {
  custom: {
    50: '#6979aa',
    500: '#1a4787',
    950: '#000000',
  },
}
SCSS
$custom: #1a4787;
$custom-light: #6979aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1a4787",
  "rgb": {
    "r": 26,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 215.229,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40431,
    "c": 0.11786,
    "h": 257.9
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#1A4787
secondary
#BA8942
accent
#A33DEB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1A4787

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

Preview Lab → · Contrast checker → · Palette generator →

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