#1A4797#1A4797

#1A4797 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.140 H 260.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#1A4797
RGBrgb(26, 71, 151)
HSLhsl(218, 71%, 35%)
HSVhsv(218, 83%, 59%)
CMYKcmyk(82.8%, 53%, 0%, 40.8%)
CIE-LABlab(31.71, 15.83, -48.14)
CIE-LCHlch(31.71, 50.67, 288.21°)
OKLaboklab(41.66% -0.0222 -0.1387)
OKLCHoklch(41.66% 0.14 260.9)
XYZxyz(8.2631, 6.9595, 30.1800)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A4797 #976A1A
analogous
#1A8697 #1A4797 #2C1A97
triadic
#1A4797 #971A47 #47971A
tetradic
#1A4797 #971A86 #976A1A #1A972C
square
#1A4797 #971A86 #976A1A #1A972C
split-complementary
#1A4797 #972C1A #86971A
monochromatic
#08162F #112E63 #1A4797 #2360CB #4B81E0

Accessibility & contrast

On white

8.78
#1A4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1A4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A4797
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A4797#FFFFFF#000000##FFFFFF
##1A47971.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1a4797;
/* rgb */ color: rgb(26, 71, 151);
/* oklch */ color: oklch(41.7% 0.140 260.9);
Tailwind
colors: {
  custom: {
    50: '#6d79b6',
    500: '#1a4797',
    950: '#000000',
  },
}
SCSS
$custom: #1a4797;
$custom-light: #6d79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a4797",
  "rgb": {
    "r": 26,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 218.4,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41664,
    "c": 0.14049,
    "h": 260.9
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#1A4797
secondary
#C2974B
accent
#AD3AED
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1A4797

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

Preview Lab → · Contrast checker → · Palette generator →

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