#1A2187#1A2187

#1A2187 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.165 H 270.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#1A2187
RGBrgb(26, 33, 135)
HSLhsl(236, 68%, 32%)
HSVhsv(236, 81%, 53%)
CMYKcmyk(80.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.27, 35.20, -56.97)
CIE-LCHlch(20.27, 66.97, 301.71°)
OKLaboklab(32.74% 0.0005 -0.165)
OKLCHoklch(32.74% 0.165 270.2)
XYZxyz(5.3415, 3.0560, 23.2253)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2187 #87801A
analogous
#1A5887 #1A2187 #4A1A87
triadic
#1A2187 #871A21 #21871A
tetradic
#1A2187 #871A58 #87801A #1A874A
square
#1A2187 #871A58 #87801A #1A874A
split-complementary
#1A2187 #874A1A #58871A
monochromatic
#060820 #101454 #1A2187 #242EBA #414BDA

Accessibility & contrast

On white

13.03
#1A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1A2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2187
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2187#FFFFFF#000000##FFFFFF
##1A21871.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a2187;
/* rgb */ color: rgb(26, 33, 135);
/* oklch */ color: oklch(32.7% 0.165 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c5dab',
    500: '#1a2187',
    950: '#000000',
  },
}
SCSS
$custom: #1a2187;
$custom-light: #6c5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2187",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 236.147,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32736,
    "c": 0.165,
    "h": 270.2
  },
  "luminance": 0.03057
}

Semantic roles & 50–950 ramp

primary
#1A2187
secondary
#BAB342
accent
#DF3DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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