#2A216B#2A216B

#2A216B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.123 H 282.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2A216B
RGBrgb(42, 33, 107)
HSLhsl(247, 53%, 27%)
HSVhsv(247, 69%, 42%)
CMYKcmyk(60.7%, 69.2%, 0%, 58%)
CIE-LABlab(18.55, 27.19, -41.86)
CIE-LCHlch(18.55, 49.91, 303.00°)
OKLaboklab(30.93% 0.0255 -0.1204)
OKLCHoklch(30.93% 0.123 282)
XYZxyz(4.1517, 2.6412, 14.1981)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A216B #626B21
analogous
#213D6B #2A216B #4F216B
triadic
#2A216B #6B2A21 #216B2A
tetradic
#2A216B #6B213D #626B21 #216B4F
square
#2A216B #6B213D #626B21 #216B4F
split-complementary
#2A216B #6B4F21 #3D6B21
monochromatic
#090717 #18133C #2A216B #3C2F9A #5242C5

Accessibility & contrast

On white

13.74
#2A216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A216B
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A216B#FFFFFF#000000##FFFFFF
##2A216B1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#053443
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a216b;
/* rgb */ color: rgb(42, 33, 107);
/* oklch */ color: oklch(30.9% 0.123 282.0);
Tailwind
colors: {
  custom: {
    50: '#6b5d96',
    500: '#2a216b',
    950: '#000000',
  },
}
SCSS
$custom: #2a216b;
$custom-light: #6b5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#2a216b",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 247.297,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30931,
    "c": 0.12308,
    "h": 282
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#2A216B
secondary
#949F49
accent
#DC4CCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A216B

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

Preview Lab → · Contrast checker → · Palette generator →

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