#1A2387#1A2387

#1A2387 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.163 H 269.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1A2387
RGBrgb(26, 35, 135)
HSLhsl(235, 68%, 32%)
HSVhsv(235, 81%, 53%)
CMYKcmyk(80.7%, 74.1%, 0%, 47.1%)
CIE-LABlab(20.71, 33.95, -56.23)
CIE-LCHlch(20.71, 65.69, 301.12°)
OKLaboklab(33.06% -0.0004 -0.1629)
OKLCHoklch(33.06% 0.163 269.9)
XYZxyz(5.3987, 3.1703, 23.2444)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2387 #877E1A
analogous
#1A5A87 #1A2387 #481A87
triadic
#1A2387 #871A23 #23871A
tetradic
#1A2387 #871A5A #877E1A #1A8748
square
#1A2387 #871A5A #877E1A #1A8748
split-complementary
#1A2387 #87481A #5A871A
monochromatic
#060820 #101654 #1A2387 #2430BA #414EDA

Accessibility & contrast

On white

12.85
#1A2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1A2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2387
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2387#FFFFFF#000000##FFFFFF
##1A23871.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a2387;
/* rgb */ color: rgb(26, 35, 135);
/* oklch */ color: oklch(33.1% 0.163 269.9);
Tailwind
colors: {
  custom: {
    50: '#6b5eab',
    500: '#1a2387',
    950: '#000000',
  },
}
SCSS
$custom: #1a2387;
$custom-light: #6b5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2387",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 235.046,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33055,
    "c": 0.16287,
    "h": 269.9
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#1A2387
secondary
#BAB042
accent
#DC3DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A2387

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

Preview Lab → · Contrast checker → · Palette generator →

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