#1A3787#1A3787

#1A3787 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.139 H 265.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#1A3787
RGBrgb(26, 55, 135)
HSLhsl(224, 68%, 32%)
HSVhsv(224, 81%, 53%)
CMYKcmyk(80.7%, 59.3%, 0%, 47.1%)
CIE-LABlab(25.86, 20.43, -47.79)
CIE-LCHlch(25.86, 51.97, 293.15°)
OKLaboklab(36.84% -0.012 -0.138)
OKLCHoklch(36.84% 0.139 265)
XYZxyz(6.1638, 4.7005, 23.4994)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A3787 #876A1A
analogous
#1A6E87 #1A3787 #341A87
triadic
#1A3787 #871A37 #37871A
tetradic
#1A3787 #871A6E #876A1A #1A8734
square
#1A3787 #871A6E #876A1A #1A8734
split-complementary
#1A3787 #87341A #6E871A
monochromatic
#060D20 #102254 #1A3787 #244CBA #416ADA

Accessibility & contrast

On white

10.82
#1A3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1A3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A3787
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A3787#FFFFFF#000000##FFFFFF
##1A37871.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1a3787;
/* rgb */ color: rgb(26, 55, 135);
/* oklch */ color: oklch(36.8% 0.139 265.0);
Tailwind
colors: {
  custom: {
    50: '#6a6dab',
    500: '#1a3787',
    950: '#000000',
  },
}
SCSS
$custom: #1a3787;
$custom-light: #6a6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a3787",
  "rgb": {
    "r": 26,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 224.037,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3684,
    "c": 0.13853,
    "h": 265
  },
  "luminance": 0.04701
}

Semantic roles & 50–950 ramp

primary
#1A3787
secondary
#BA9A42
accent
#BC3DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1A3787

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

Preview Lab → · Contrast checker → · Palette generator →

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