#1A217F#1A217F

#1A217F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.155 H 270.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1A217F
RGBrgb(26, 33, 127)
HSLhsl(236, 66%, 30%)
HSVhsv(236, 80%, 50%)
CMYKcmyk(79.5%, 74%, 0%, 50.2%)
CIE-LABlab(19.39, 32.27, -53.37)
CIE-LCHlch(19.39, 62.37, 301.16°)
OKLaboklab(31.85% 0.0017 -0.1545)
OKLCHoklch(31.85% 0.155 270.6)
XYZxyz(4.7993, 2.8391, 20.3696)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A217F #7F781A
analogous
#1A537F #1A217F #461A7F
triadic
#1A217F #7F1A21 #217F1A
tetradic
#1A217F #7F1A53 #7F781A #1A7F46
square
#1A217F #7F1A53 #7F781A #1A7F46
split-complementary
#1A217F #7F461A #537F1A
monochromatic
#050719 #10144C #1A217F #242EB2 #3C47D7

Accessibility & contrast

On white

13.39
#1A217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1A217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A217F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A217F#FFFFFF#000000##FFFFFF
##1A217F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a217f;
/* rgb */ color: rgb(26, 33, 127);
/* oklch */ color: oklch(31.8% 0.155 270.6);
Tailwind
colors: {
  custom: {
    50: '#695da5',
    500: '#1a217f',
    950: '#000000',
  },
}
SCSS
$custom: #1a217f;
$custom-light: #695da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a217f",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 235.842,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.15454,
    "h": 270.6
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A217F

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

Preview Lab → · Contrast checker → · Palette generator →

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