#1A217D#1A217D

#1A217D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.152 H 270.7°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#1A217D
RGBrgb(26, 33, 125)
HSLhsl(236, 66%, 30%)
HSVhsv(236, 79%, 49%)
CMYKcmyk(79.2%, 73.6%, 0%, 51%)
CIE-LABlab(19.17, 31.53, -52.46)
CIE-LCHlch(19.17, 61.21, 301.01°)
OKLaboklab(31.63% 0.0019 -0.1519)
OKLCHoklch(31.63% 0.152 270.7)
XYZxyz(4.6703, 2.7875, 19.6900)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A217D #7D761A
analogous
#1A527D #1A217D #451A7D
triadic
#1A217D #7D1A21 #217D1A
tetradic
#1A217D #7D1A52 #7D761A #1A7D45
square
#1A217D #7D1A52 #7D761A #1A7D45
split-complementary
#1A217D #7D451A #527D1A
monochromatic
#050719 #0F144A #1A217D #252EB0 #3B46D6

Accessibility & contrast

On white

13.48
#1A217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1A217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A217D
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A217D#FFFFFF#000000##FFFFFF
##1A217D1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a217d;
/* rgb */ color: rgb(26, 33, 125);
/* oklch */ color: oklch(31.6% 0.152 270.7);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1a217d',
    950: '#000000',
  },
}
SCSS
$custom: #1a217d;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a217d",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 235.758,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31626,
    "c": 0.15188,
    "h": 270.7
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#1A217D
secondary
#B1A942
accent
#DD3FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A217D

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

Preview Lab → · Contrast checker → · Palette generator →

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