#1A2A87#1A2A87

#1A2A87 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.155 H 268.6°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#1A2A87
RGBrgb(26, 42, 135)
HSLhsl(231, 68%, 32%)
HSVhsv(231, 81%, 53%)
CMYKcmyk(80.7%, 68.9%, 0%, 47.1%)
CIE-LABlab(22.39, 29.39, -53.47)
CIE-LCHlch(22.39, 61.02, 298.79°)
OKLaboklab(34.27% -0.0038 -0.1548)
OKLCHoklch(34.27% 0.155 268.6)
XYZxyz(5.6256, 3.6242, 23.3200)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2A87 #87771A
analogous
#1A6187 #1A2A87 #411A87
triadic
#1A2A87 #871A2A #2A871A
tetradic
#1A2A87 #871A61 #87771A #1A8741
square
#1A2A87 #871A61 #87771A #1A8741
split-complementary
#1A2A87 #87411A #61871A
monochromatic
#060A20 #101A54 #1A2A87 #243ABA #4158DA

Accessibility & contrast

On white

12.17
#1A2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1A2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2A87
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2A87#FFFFFF#000000##FFFFFF
##1A2A871.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a2a87;
/* rgb */ color: rgb(26, 42, 135);
/* oklch */ color: oklch(34.3% 0.155 268.6);
Tailwind
colors: {
  custom: {
    50: '#6b63ab',
    500: '#1a2a87',
    950: '#000000',
  },
}
SCSS
$custom: #1a2a87;
$custom-light: #6b63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2a87",
  "rgb": {
    "r": 26,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 231.193,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.15487,
    "h": 268.6
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#1A2A87
secondary
#BAA942
accent
#D13DEB
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1A2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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