#2A216A#2A216A

#2A216A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.122 H 282.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2A216A
RGBrgb(42, 33, 106)
HSLhsl(247, 53%, 27%)
HSVhsv(247, 69%, 42%)
CMYKcmyk(60.4%, 68.9%, 0%, 58.4%)
CIE-LABlab(18.45, 26.84, -41.36)
CIE-LCHlch(18.45, 49.30, 302.98°)
OKLaboklab(30.84% 0.0256 -0.1189)
OKLCHoklch(30.84% 0.122 282.2)
XYZxyz(4.0994, 2.6203, 13.9226)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A216A #616A21
analogous
#213D6A #2A216A #4E216A
triadic
#2A216A #6A2A21 #216A2A
tetradic
#2A216A #6A213D #616A21 #216A4E
square
#2A216A #6A213D #616A21 #216A4E
split-complementary
#2A216A #6A4E21 #3D6A21
monochromatic
#090717 #18123B #2A216A #3C3099 #5241C4

Accessibility & contrast

On white

13.78
#2A216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A216A
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A216A#FFFFFF#000000##FFFFFF
##2A216A1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#073342
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a216a;
/* rgb */ color: rgb(42, 33, 106);
/* oklch */ color: oklch(30.8% 0.122 282.2);
Tailwind
colors: {
  custom: {
    50: '#6b5d95',
    500: '#2a216a',
    950: '#000000',
  },
}
SCSS
$custom: #2a216a;
$custom-light: #6b5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#2a216a",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 247.397,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30836,
    "c": 0.12167,
    "h": 282.2
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#2A216A
secondary
#939E49
accent
#DC4CCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A216A

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

Preview Lab → · Contrast checker → · Palette generator →

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