#2A217A#2A217A

#2A217A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.144 H 279.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2A217A
RGBrgb(42, 33, 122)
HSLhsl(246, 57%, 30%)
HSVhsv(246, 73%, 48%)
CMYKcmyk(65.6%, 73%, 0%, 52.2%)
CIE-LABlab(19.98, 32.38, -49.17)
CIE-LCHlch(19.98, 58.88, 303.36°)
OKLaboklab(32.41% 0.0231 -0.1418)
OKLCHoklch(32.41% 0.144 279.3)
XYZxyz(5.0104, 2.9847, 18.7207)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A217A #717A21
analogous
#21457A #2A217A #56217A
triadic
#2A217A #7A2A21 #217A2A
tetradic
#2A217A #7A2145 #717A21 #217A56
square
#2A217A #7A2145 #717A21 #217A56
split-complementary
#2A217A #7A5621 #457A21
monochromatic
#09071A #19144A #2A217A #3B2EAA #5548CD

Accessibility & contrast

On white

13.15
#2A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A217A
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A217A#FFFFFF#000000##FFFFFF
##2A217A1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a217a;
/* rgb */ color: rgb(42, 33, 122);
/* oklch */ color: oklch(32.4% 0.144 279.3);
Tailwind
colors: {
  custom: {
    50: '#6f5da1',
    500: '#2a217a',
    950: '#000000',
  },
}
SCSS
$custom: #2a217a;
$custom-light: #6f5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a217a",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 246.067,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32407,
    "c": 0.14372,
    "h": 279.3
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#2A217A
secondary
#A3AD4A
accent
#E147D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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