#1A2D87#1A2D87

#1A2D87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.151 H 267.9°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1A2D87
RGBrgb(26, 45, 135)
HSLhsl(230, 68%, 32%)
HSVhsv(230, 81%, 53%)
CMYKcmyk(80.7%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.15, 27.36, -52.22)
CIE-LCHlch(23.15, 58.95, 297.65°)
OKLaboklab(34.83% -0.0055 -0.1511)
OKLCHoklch(34.83% 0.151 267.9)
XYZxyz(5.7360, 3.8450, 23.3568)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2D87 #87741A
analogous
#1A6487 #1A2D87 #3E1A87
triadic
#1A2D87 #871A2D #2D871A
tetradic
#1A2D87 #871A64 #87741A #1A873E
square
#1A2D87 #871A64 #87741A #1A873E
split-complementary
#1A2D87 #873E1A #64871A
monochromatic
#060B20 #101C54 #1A2D87 #243EBA #415CDA

Accessibility & contrast

On white

11.87
#1A2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1A2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2D87
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2D87#FFFFFF#000000##FFFFFF
##1A2D871.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a2d87;
/* rgb */ color: rgb(26, 45, 135);
/* oklch */ color: oklch(34.8% 0.151 267.9);
Tailwind
colors: {
  custom: {
    50: '#6a65ab',
    500: '#1a2d87',
    950: '#000000',
  },
}
SCSS
$custom: #1a2d87;
$custom-light: #6a65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2d87",
  "rgb": {
    "r": 26,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 229.541,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34826,
    "c": 0.15124,
    "h": 267.9
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#1A2D87
secondary
#BAA542
accent
#CC3DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1A2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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