#1A218B#1A218B

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

Color values

HEX#1A218B
RGBrgb(26, 33, 139)
HSLhsl(236, 68%, 32%)
HSVhsv(236, 81%, 55%)
CMYKcmyk(81.3%, 76.3%, 0%, 45.5%)
CIE-LABlab(20.72, 36.63, -58.73)
CIE-LCHlch(20.72, 69.22, 301.95°)
OKLaboklab(33.19% -0.0002 -0.1701)
OKLCHoklch(33.19% 0.17 269.9)
XYZxyz(5.6285, 3.1708, 24.7365)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A218B #8B841A
analogous
#1A5A8B #1A218B #4B1A8B
triadic
#1A218B #8B1A21 #218B1A
tetradic
#1A218B #8B1A5A #8B841A #1A8B4B
square
#1A218B #8B1A5A #8B841A #1A8B4B
split-complementary
#1A218B #8B4B1A #5A8B1A
monochromatic
#070924 #101557 #1A218B #242DBF #434DDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A218B#FFFFFF#000000##FFFFFF
##1A218B1.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)
#00378E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a218b;
/* rgb */ color: rgb(26, 33, 139);
/* oklch */ color: oklch(33.2% 0.170 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d5dae',
    500: '#1a218b',
    950: '#000000',
  },
}
SCSS
$custom: #1a218b;
$custom-light: #6d5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#1a218b",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 236.283,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.17013,
    "h": 269.9
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#1A218B
secondary
#BDB644
accent
#E03CEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A218B

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

Preview Lab → · Contrast checker → · Palette generator →

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