#2A219F#2A219F

#2A219F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.191 H 274.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2A219F
RGBrgb(42, 33, 159)
HSLhsl(244, 66%, 38%)
HSVhsv(244, 79%, 62%)
CMYKcmyk(73.6%, 79.2%, 0%, 37.6%)
CIE-LABlab(23.94, 44.70, -65.71)
CIE-LCHlch(23.94, 79.47, 304.22°)
OKLaboklab(36.39% 0.0149 -0.1901)
OKLCHoklch(36.39% 0.191 274.5)
XYZxyz(7.7546, 4.0824, 33.1735)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A219F #969F21
analogous
#21579F #2A219F #69219F
triadic
#2A219F #9F2A21 #219F2A
tetradic
#2A219F #9F2157 #969F21 #219F69
square
#2A219F #9F2157 #969F21 #219F69
split-complementary
#2A219F #9F6921 #579F21
monochromatic
#0F0C3A #1D166C #2A219F #372CD2 #665DDD

Accessibility & contrast

On white

11.56
#2A219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A219F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A219F#FFFFFF#000000##FFFFFF
##2A219F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a219f;
/* rgb */ color: rgb(42, 33, 159);
/* oklch */ color: oklch(36.4% 0.191 274.5);
Tailwind
colors: {
  custom: {
    50: '#775fbd',
    500: '#2a219f',
    950: '#000000',
  },
}
SCSS
$custom: #2a219f;
$custom-light: #775fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a219f",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 244.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.19065,
    "h": 274.5
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#2A219F
secondary
#BAC25A
accent
#E93FDC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A219F

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

Preview Lab → · Contrast checker → · Palette generator →

#2A219F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva