#2A219A#2A219A

#2A219A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.185 H 275.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2A219A
RGBrgb(42, 33, 154)
HSLhsl(244, 65%, 37%)
HSVhsv(244, 79%, 60%)
CMYKcmyk(72.7%, 78.6%, 0%, 39.6%)
CIE-LABlab(23.38, 43.08, -63.58)
CIE-LCHlch(23.38, 76.81, 304.12°)
OKLaboklab(35.83% 0.0161 -0.1839)
OKLCHoklch(35.83% 0.185 275)
XYZxyz(7.3295, 3.9123, 30.9345)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A219A #919A21
analogous
#21559A #2A219A #67219A
triadic
#2A219A #9A2A21 #219A2A
tetradic
#2A219A #9A2155 #919A21 #219A67
square
#2A219A #9A2155 #919A21 #219A67
split-complementary
#2A219A #9A6721 #559A21
monochromatic
#0F0B35 #1C1668 #2A219A #382CCC #635ADC

Accessibility & contrast

On white

11.78
#2A219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A219A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A219A#FFFFFF#000000##FFFFFF
##2A219A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a219a;
/* rgb */ color: rgb(42, 33, 154);
/* oklch */ color: oklch(35.8% 0.185 275.0);
Tailwind
colors: {
  custom: {
    50: '#765fb9',
    500: '#2a219a',
    950: '#000000',
  },
}
SCSS
$custom: #2a219a;
$custom-light: #765fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a219a",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 244.463,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.18458,
    "h": 275
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A219A

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

Preview Lab → · Contrast checker → · Palette generator →

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