#1A218A#1A218A

#1A218A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.169 H 270.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#1A218A
RGBrgb(26, 33, 138)
HSLhsl(236, 68%, 32%)
HSVhsv(236, 81%, 54%)
CMYKcmyk(81.2%, 76.1%, 0%, 45.9%)
CIE-LABlab(20.60, 36.28, -58.30)
CIE-LCHlch(20.60, 68.66, 301.89°)
OKLaboklab(33.07% 0 -0.1689)
OKLCHoklch(33.07% 0.169 270)
XYZxyz(5.5557, 3.1417, 24.3534)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A218A #8A831A
analogous
#1A598A #1A218A #4B1A8A
triadic
#1A218A #8A1A21 #218A1A
tetradic
#1A218A #8A1A59 #8A831A #1A8A4B
square
#1A218A #8A1A59 #8A831A #1A8A4B
split-complementary
#1A218A #8A4B1A #598A1A
monochromatic
#070823 #101557 #1A218A #242DBD #434CDC

Accessibility & contrast

On white

12.90
#1A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1A218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A218A
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A218A#FFFFFF#000000##FFFFFF
##1A218A1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a218a;
/* rgb */ color: rgb(26, 33, 138);
/* oklch */ color: oklch(33.1% 0.169 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c5dad',
    500: '#1a218a',
    950: '#000000',
  },
}
SCSS
$custom: #1a218a;
$custom-light: #6c5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#1a218a",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 236.25,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33075,
    "c": 0.16886,
    "h": 270
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#1A218A
secondary
#BDB543
accent
#E03DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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