#1A2887#1A2887

#1A2887 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.157 H 269.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#1A2887
RGBrgb(26, 40, 135)
HSLhsl(232, 68%, 32%)
HSVhsv(232, 81%, 53%)
CMYKcmyk(80.7%, 70.4%, 0%, 47.1%)
CIE-LABlab(21.89, 30.72, -54.29)
CIE-LCHlch(21.89, 62.38, 299.51°)
OKLaboklab(33.91% -0.0028 -0.1572)
OKLCHoklch(33.91% 0.157 269)
XYZxyz(5.5565, 3.4858, 23.2970)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2887 #87791A
analogous
#1A5F87 #1A2887 #431A87
triadic
#1A2887 #871A28 #28871A
tetradic
#1A2887 #871A5F #87791A #1A8743
square
#1A2887 #871A5F #87791A #1A8743
split-complementary
#1A2887 #87431A #5F871A
monochromatic
#060A20 #101954 #1A2887 #2437BA #4155DA

Accessibility & contrast

On white

12.37
#1A2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1A2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2887
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2887#FFFFFF#000000##FFFFFF
##1A28871.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a2887;
/* rgb */ color: rgb(26, 40, 135);
/* oklch */ color: oklch(33.9% 0.157 269.0);
Tailwind
colors: {
  custom: {
    50: '#6b62ab',
    500: '#1a2887',
    950: '#000000',
  },
}
SCSS
$custom: #1a2887;
$custom-light: #6b62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2887",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 232.294,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33906,
    "c": 0.15723,
    "h": 269
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#1A2887
secondary
#BAAB42
accent
#D43DEB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1A2887

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

Preview Lab → · Contrast checker → · Palette generator →

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