#1A3796#1A3796

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

Color values

HEX#1A3796
RGBrgb(26, 55, 150)
HSLhsl(226, 70%, 35%)
HSVhsv(226, 83%, 59%)
CMYKcmyk(82.7%, 63.3%, 0%, 41.2%)
CIE-LABlab(27.17, 26.43, -54.93)
CIE-LCHlch(27.17, 60.96, 295.69°)
OKLaboklab(38.22% -0.0116 -0.159)
OKLCHoklch(38.22% 0.159 265.8)
XYZxyz(7.2953, 5.1531, 29.4584)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A3796 #96791A
analogous
#1A7596 #1A3796 #3B1A96
triadic
#1A3796 #961A37 #37961A
tetradic
#1A3796 #961A75 #96791A #1A963B
square
#1A3796 #961A75 #96791A #1A963B
split-complementary
#1A3796 #963B1A #75961A
monochromatic
#08112E #112462 #1A3796 #234ACA #4B6EE0

Accessibility & contrast

On white

10.34
#1A3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1A3796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A3796
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A3796#FFFFFF#000000##FFFFFF
##1A37961.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1a3796;
/* rgb */ color: rgb(26, 55, 150);
/* oklch */ color: oklch(38.2% 0.159 265.8);
Tailwind
colors: {
  custom: {
    50: '#6e6db6',
    500: '#1a3796',
    950: '#000000',
  },
}
SCSS
$custom: #1a3796;
$custom-light: #6e6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a3796",
  "rgb": {
    "r": 26,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 225.968,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.15939,
    "h": 265.8
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#1A3796
secondary
#C2A64A
accent
#C33BED
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1A3796

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

Preview Lab → · Contrast checker → · Palette generator →

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