#2A216D#2A216D

#2A216D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.126 H 281.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2A216D
RGBrgb(42, 33, 109)
HSLhsl(247, 54%, 28%)
HSVhsv(247, 70%, 43%)
CMYKcmyk(61.5%, 69.7%, 0%, 57.3%)
CIE-LABlab(18.73, 27.88, -42.86)
CIE-LCHlch(18.73, 51.13, 303.05°)
OKLaboklab(31.12% 0.0252 -0.1233)
OKLCHoklch(31.12% 0.126 281.6)
XYZxyz(4.2582, 2.6838, 14.7587)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A216D #646D21
analogous
#213E6D #2A216D #50216D
triadic
#2A216D #6D2A21 #216D2A
tetradic
#2A216D #6D213E #646D21 #216D50
square
#2A216D #6D213E #646D21 #216D50
split-complementary
#2A216D #6D5021 #3E6D21
monochromatic
#090717 #18133E #2A216D #3C2F9C #5242C6

Accessibility & contrast

On white

13.66
#2A216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A216D
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A216D#FFFFFF#000000##FFFFFF
##2A216D1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#023444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a216d;
/* rgb */ color: rgb(42, 33, 109);
/* oklch */ color: oklch(31.1% 0.126 281.6);
Tailwind
colors: {
  custom: {
    50: '#6c5d98',
    500: '#2a216d',
    950: '#000000',
  },
}
SCSS
$custom: #2a216d;
$custom-light: #6c5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a216d",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 247.105,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31122,
    "c": 0.1259,
    "h": 281.6
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#2A216D
secondary
#96A149
accent
#DD4BCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A216D

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

Preview Lab → · Contrast checker → · Palette generator →

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