#1A287D#1A287D

#1A287D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.144 H 269.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1A287D
RGBrgb(26, 40, 125)
HSLhsl(232, 66%, 30%)
HSVhsv(232, 79%, 49%)
CMYKcmyk(79.2%, 68%, 0%, 51%)
CIE-LABlab(20.89, 26.88, -49.63)
CIE-LCHlch(20.89, 56.44, 298.44°)
OKLaboklab(32.88% -0.002 -0.1436)
OKLCHoklch(32.88% 0.144 269.2)
XYZxyz(4.8852, 3.2173, 19.7616)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A287D #7D6F1A
analogous
#1A5A7D #1A287D #3E1A7D
triadic
#1A287D #7D1A28 #287D1A
tetradic
#1A287D #7D1A5A #7D6F1A #1A7D3E
square
#1A287D #7D1A5A #7D6F1A #1A7D3E
split-complementary
#1A287D #7D3E1A #5A7D1A
monochromatic
#050819 #0F184A #1A287D #2538B0 #3B51D6

Accessibility & contrast

On white

12.78
#1A287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1A287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A287D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A287D#FFFFFF#000000##FFFFFF
##1A287D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a287d;
/* rgb */ color: rgb(26, 40, 125);
/* oklch */ color: oklch(32.9% 0.144 269.2);
Tailwind
colors: {
  custom: {
    50: '#6862a4',
    500: '#1a287d',
    950: '#000000',
  },
}
SCSS
$custom: #1a287d;
$custom-light: #6862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a287d",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 231.515,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32875,
    "c": 0.1436,
    "h": 269.2
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#1A287D
secondary
#B1A142
accent
#D13FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A287D

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

Preview Lab → · Contrast checker → · Palette generator →

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