#1A2787#1A2787

#1A2787 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.158 H 269.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1A2787
RGBrgb(26, 39, 135)
HSLhsl(233, 68%, 32%)
HSVhsv(233, 81%, 53%)
CMYKcmyk(80.7%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.65, 31.38, -54.69)
CIE-LCHlch(21.65, 63.05, 299.85°)
OKLaboklab(33.73% -0.0023 -0.1584)
OKLCHoklch(33.73% 0.158 269.2)
XYZxyz(5.5232, 3.4193, 23.2859)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2787 #877A1A
analogous
#1A5E87 #1A2787 #441A87
triadic
#1A2787 #871A27 #27871A
tetradic
#1A2787 #871A5E #877A1A #1A8744
square
#1A2787 #871A5E #877A1A #1A8744
split-complementary
#1A2787 #87441A #5E871A
monochromatic
#060920 #101854 #1A2787 #2436BA #4153DA

Accessibility & contrast

On white

12.47
#1A2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1A2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2787
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2787#FFFFFF#000000##FFFFFF
##1A27871.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a2787;
/* rgb */ color: rgb(26, 39, 135);
/* oklch */ color: oklch(33.7% 0.158 269.2);
Tailwind
colors: {
  custom: {
    50: '#6b61ab',
    500: '#1a2787',
    950: '#000000',
  },
}
SCSS
$custom: #1a2787;
$custom-light: #6b61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2787",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 232.844,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3373,
    "c": 0.15839,
    "h": 269.2
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#1A2787
secondary
#BAAC42
accent
#D63DEB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1A2787

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

Preview Lab → · Contrast checker → · Palette generator →

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