#1A217E#1A217E

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

Color values

HEX#1A217E
RGBrgb(26, 33, 126)
HSLhsl(236, 66%, 30%)
HSVhsv(236, 79%, 49%)
CMYKcmyk(79.4%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.28, 31.90, -52.92)
CIE-LCHlch(19.28, 61.79, 301.09°)
OKLaboklab(31.74% 0.0018 -0.1532)
OKLCHoklch(31.74% 0.153 270.7)
XYZxyz(4.7345, 2.8132, 20.0281)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A217E #7E771A
analogous
#1A537E #1A217E #451A7E
triadic
#1A217E #7E1A21 #217E1A
tetradic
#1A217E #7E1A53 #7E771A #1A7E45
square
#1A217E #7E1A53 #7E771A #1A7E45
split-complementary
#1A217E #7E451A #537E1A
monochromatic
#050719 #10144B #1A217E #242EB1 #3C47D7

Accessibility & contrast

On white

13.44
#1A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A217E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A217E#FFFFFF#000000##FFFFFF
##1A217E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a217e;
/* rgb */ color: rgb(26, 33, 126);
/* oklch */ color: oklch(31.7% 0.153 270.7);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1a217e',
    950: '#000000',
  },
}
SCSS
$custom: #1a217e;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a217e",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 235.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31735,
    "c": 0.15321,
    "h": 270.7
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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