#2A219B#2A219B

#2A219B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.186 H 274.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2A219B
RGBrgb(42, 33, 155)
HSLhsl(244, 65%, 37%)
HSVhsv(244, 79%, 61%)
CMYKcmyk(72.9%, 78.7%, 0%, 39.2%)
CIE-LABlab(23.49, 43.41, -64.01)
CIE-LCHlch(23.49, 77.34, 304.14°)
OKLaboklab(35.94% 0.0159 -0.1851)
OKLCHoklch(35.94% 0.186 274.9)
XYZxyz(7.4131, 3.9458, 31.3749)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A219B #929B21
analogous
#21559B #2A219B #67219B
triadic
#2A219B #9B2A21 #219B2A
tetradic
#2A219B #9B2155 #929B21 #219B67
square
#2A219B #9B2155 #929B21 #219B67
split-complementary
#2A219B #9B6721 #559B21
monochromatic
#0F0C36 #1C1669 #2A219B #382CCD #645ADC

Accessibility & contrast

On white

11.74
#2A219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A219B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A219B#FFFFFF#000000##FFFFFF
##2A219B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a219b;
/* rgb */ color: rgb(42, 33, 155);
/* oklch */ color: oklch(35.9% 0.186 274.9);
Tailwind
colors: {
  custom: {
    50: '#765fba',
    500: '#2a219b',
    950: '#000000',
  },
}
SCSS
$custom: #2a219b;
$custom-light: #765fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a219b",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 244.426,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35939,
    "c": 0.1858,
    "h": 274.9
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#2A219B
secondary
#B8C058
accent
#E840DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A219B

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

Preview Lab → · Contrast checker → · Palette generator →

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