#2A217E#2A217E

#2A217E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 278.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2A217E
RGBrgb(42, 33, 126)
HSLhsl(246, 58%, 31%)
HSVhsv(246, 74%, 49%)
CMYKcmyk(66.7%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.38, 33.75, -51.06)
CIE-LCHlch(20.38, 61.20, 303.47°)
OKLaboklab(32.82% 0.0224 -0.1474)
OKLCHoklch(32.82% 0.149 278.6)
XYZxyz(5.2634, 3.0859, 20.0529)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A217E #757E21
analogous
#21467E #2A217E #58217E
triadic
#2A217E #7E2A21 #217E2A
tetradic
#2A217E #7E2146 #757E21 #217E58
square
#2A217E #7E2146 #757E21 #217E58
split-complementary
#2A217E #7E5821 #467E21
monochromatic
#0A081D #1A144E #2A217E #3A2EAE #574AD0

Accessibility & contrast

On white

12.99
#2A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A217E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A217E#FFFFFF#000000##FFFFFF
##2A217E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a217e;
/* rgb */ color: rgb(42, 33, 126);
/* oklch */ color: oklch(32.8% 0.149 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ea4',
    500: '#2a217e',
    950: '#000000',
  },
}
SCSS
$custom: #2a217e;
$custom-light: #6f5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a217e",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 245.806,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32816,
    "c": 0.14905,
    "h": 278.6
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#2A217E
secondary
#A7B14A
accent
#E246D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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