#1A3797#1A3797

#1A3797 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.161 H 265.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#1A3797
RGBrgb(26, 55, 151)
HSLhsl(226, 71%, 35%)
HSVhsv(226, 83%, 59%)
CMYKcmyk(82.8%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.26, 26.82, -55.39)
CIE-LCHlch(27.26, 61.54, 295.83°)
OKLaboklab(38.31% -0.0116 -0.1603)
OKLCHoklch(38.31% 0.161 265.8)
XYZxyz(7.3761, 5.1855, 29.8843)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A3797 #977A1A
analogous
#1A7697 #1A3797 #3C1A97
triadic
#1A3797 #971A37 #37971A
tetradic
#1A3797 #971A76 #977A1A #1A973C
square
#1A3797 #971A76 #977A1A #1A973C
split-complementary
#1A3797 #973C1A #76971A
monochromatic
#08112F #112463 #1A3797 #234ACB #4B6EE0

Accessibility & contrast

On white

10.31
#1A3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1A3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A3797
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A3797#FFFFFF#000000##FFFFFF
##1A37971.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1a3797;
/* rgb */ color: rgb(26, 55, 151);
/* oklch */ color: oklch(38.3% 0.161 265.8);
Tailwind
colors: {
  custom: {
    50: '#6e6db6',
    500: '#1a3797',
    950: '#000000',
  },
}
SCSS
$custom: #1a3797;
$custom-light: #6e6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a3797",
  "rgb": {
    "r": 26,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 226.08,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38311,
    "c": 0.16074,
    "h": 265.8
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#1A3797
secondary
#C2A64B
accent
#C43AED
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1A3797

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

Preview Lab → · Contrast checker → · Palette generator →

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