#1A218E#1A218E

#1A218E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.174 H 269.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1A218E
RGBrgb(26, 33, 142)
HSLhsl(236, 69%, 33%)
HSVhsv(236, 82%, 56%)
CMYKcmyk(81.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.05, 37.70, -60.04)
CIE-LCHlch(21.05, 70.90, 302.12°)
OKLaboklab(33.53% -0.0007 -0.1739)
OKLCHoklch(33.53% 0.174 269.8)
XYZxyz(5.8507, 3.2596, 25.9068)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A218E #8E871A
analogous
#1A5B8E #1A218E #4D1A8E
triadic
#1A218E #8E1A21 #218E1A
tetradic
#1A218E #8E1A5B #8E871A #1A8E4D
square
#1A218E #8E1A5B #8E871A #1A8E4D
split-complementary
#1A218E #8E4D1A #5B8E1A
monochromatic
#070927 #11155A #1A218E #232DC2 #454FDD

Accessibility & contrast

On white

12.71
#1A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1A218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A218E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A218E#FFFFFF#000000##FFFFFF
##1A218E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a218e;
/* rgb */ color: rgb(26, 33, 142);
/* oklch */ color: oklch(33.5% 0.174 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1a218e',
    950: '#000000',
  },
}
SCSS
$custom: #1a218e;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a218e",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 236.379,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3353,
    "c": 0.17393,
    "h": 269.8
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#1A218E
secondary
#BEB745
accent
#E13CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #1A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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