#2218A1#2218A1

#2218A1 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.1% C 0.202 H 272.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2218A1
RGBrgb(34, 24, 161)
HSLhsl(244, 74%, 36%)
HSVhsv(244, 85%, 63%)
CMYKcmyk(78.9%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.18, 49.10, -69.87)
CIE-LCHlch(22.18, 85.39, 305.10°)
OKLaboklab(35.1% 0.007 -0.2021)
OKLCHoklch(35.1% 0.202 272)
XYZxyz(7.4172, 3.5657, 34.0086)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2218A1 #97A118
analogous
#1853A1 #2218A1 #6718A1
triadic
#2218A1 #A12218 #18A122
tetradic
#2218A1 #A11853 #97A118 #18A167
square
#2218A1 #A11853 #97A118 #18A167
split-complementary
#2218A1 #A16718 #53A118
monochromatic
#0C0836 #17106C #2218A1 #2D20D6 #5A4FE5

Accessibility & contrast

On white

12.26
#2218A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2218A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2218A1
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2218A1#FFFFFF#000000##FFFFFF
##2218A11.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002E9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2218a1;
/* rgb */ color: rgb(34, 24, 161);
/* oklch */ color: oklch(35.1% 0.202 272.0);
Tailwind
colors: {
  custom: {
    50: '#765abe',
    500: '#2218a1',
    950: '#000000',
  },
}
SCSS
$custom: #2218a1;
$custom-light: #765abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2218a1",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 244.38,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35096,
    "c": 0.20224,
    "h": 272
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#2218A1
secondary
#BEC74E
accent
#F137E3
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2218A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2218A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva