#2A217B#2A217B

#2A217B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.145 H 279.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2A217B
RGBrgb(42, 33, 123)
HSLhsl(246, 58%, 31%)
HSVhsv(246, 73%, 48%)
CMYKcmyk(65.9%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.08, 32.72, -49.65)
CIE-LCHlch(20.08, 59.46, 303.39°)
OKLaboklab(32.51% 0.0229 -0.1432)
OKLCHoklch(32.51% 0.145 279.1)
XYZxyz(5.0727, 3.0096, 19.0486)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A217B #727B21
analogous
#21457B #2A217B #57217B
triadic
#2A217B #7B2A21 #217B2A
tetradic
#2A217B #7B2145 #727B21 #217B57
square
#2A217B #7B2145 #727B21 #217B57
split-complementary
#2A217B #7B5721 #457B21
monochromatic
#09071A #1A144B #2A217B #3A2EAB #5648CE

Accessibility & contrast

On white

13.11
#2A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A217B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A217B#FFFFFF#000000##FFFFFF
##2A217B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a217b;
/* rgb */ color: rgb(42, 33, 123);
/* oklch */ color: oklch(32.5% 0.145 279.1);
Tailwind
colors: {
  custom: {
    50: '#6f5da2',
    500: '#2a217b',
    950: '#000000',
  },
}
SCSS
$custom: #2a217b;
$custom-light: #6f5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a217b",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 246,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32508,
    "c": 0.14506,
    "h": 279.1
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#2A217B
secondary
#A4AE4A
accent
#E147D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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