#1A2987#1A2987

#1A2987 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.156 H 268.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1A2987
RGBrgb(26, 41, 135)
HSLhsl(232, 68%, 32%)
HSVhsv(232, 81%, 53%)
CMYKcmyk(80.7%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.14, 30.06, -53.88)
CIE-LCHlch(22.14, 61.70, 299.15°)
OKLaboklab(34.09% -0.0033 -0.156)
OKLCHoklch(34.09% 0.156 268.8)
XYZxyz(5.5906, 3.5541, 23.3083)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2987 #87781A
analogous
#1A6087 #1A2987 #421A87
triadic
#1A2987 #871A29 #29871A
tetradic
#1A2987 #871A60 #87781A #1A8742
square
#1A2987 #871A60 #87781A #1A8742
split-complementary
#1A2987 #87421A #60871A
monochromatic
#060A20 #101954 #1A2987 #2439BA #4156DA

Accessibility & contrast

On white

12.27
#1A2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1A2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2987
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2987#FFFFFF#000000##FFFFFF
##1A29871.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a2987;
/* rgb */ color: rgb(26, 41, 135);
/* oklch */ color: oklch(34.1% 0.156 268.8);
Tailwind
colors: {
  custom: {
    50: '#6b63ab',
    500: '#1a2987',
    950: '#000000',
  },
}
SCSS
$custom: #1a2987;
$custom-light: #6b63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2987",
  "rgb": {
    "r": 26,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 231.743,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34085,
    "c": 0.15606,
    "h": 268.8
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#1A2987
secondary
#BAAA42
accent
#D33DEB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1A2987

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

Preview Lab → · Contrast checker → · Palette generator →

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