#1A218C#1A218C

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

Color values

HEX#1A218C
RGBrgb(26, 33, 140)
HSLhsl(236, 69%, 33%)
HSVhsv(236, 81%, 55%)
CMYKcmyk(81.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(20.83, 36.99, -59.17)
CIE-LCHlch(20.83, 69.78, 302.01°)
OKLaboklab(33.3% -0.0003 -0.1714)
OKLCHoklch(33.3% 0.171 269.9)
XYZxyz(5.7019, 3.2001, 25.1230)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A218C #8C851A
analogous
#1A5A8C #1A218C #4C1A8C
triadic
#1A218C #8C1A21 #218C1A
tetradic
#1A218C #8C1A5A #8C851A #1A8C4C
square
#1A218C #8C1A5A #8C851A #1A8C4C
split-complementary
#1A218C #8C4C1A #5A8C1A
monochromatic
#070925 #101558 #1A218C #242DC0 #444DDC

Accessibility & contrast

On white

12.80
#1A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A218C
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A218C#FFFFFF#000000##FFFFFF
##1A218C1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a218c;
/* rgb */ color: rgb(26, 33, 140);
/* oklch */ color: oklch(33.3% 0.171 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d5daf',
    500: '#1a218c',
    950: '#000000',
  },
}
SCSS
$custom: #1a218c;
$custom-light: #6d5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1a218c",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 236.316,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33302,
    "c": 0.1714,
    "h": 269.9
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#1A218C
secondary
#BEB644
accent
#E13CEC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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