#2A215D#2A215D

#2A215D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.7% C 0.103 H 285.1°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2A215D
RGBrgb(42, 33, 93)
HSLhsl(249, 48%, 25%)
HSVhsv(249, 65%, 36%)
CMYKcmyk(54.8%, 64.5%, 0%, 63.5%)
CIE-LABlab(17.32, 22.31, -34.64)
CIE-LCHlch(17.32, 41.20, 302.78°)
OKLaboklab(29.65% 0.0268 -0.0992)
OKLCHoklch(29.65% 0.103 285.1)
XYZxyz(3.4739, 2.3701, 10.6282)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A215D #545D21
analogous
#21365D #2A215D #48215D
triadic
#2A215D #5D2A21 #215D2A
tetradic
#2A215D #5D2136 #545D21 #215D48
square
#2A215D #5D2136 #545D21 #215D48
split-complementary
#2A215D #5D4821 #365D21
monochromatic
#0A0817 #161130 #2A215D #3E318A #5341B7

Accessibility & contrast

On white

14.25
#2A215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A215D
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A215D#FFFFFF#000000##FFFFFF
##2A215D1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#172F3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a215d;
/* rgb */ color: rgb(42, 33, 93);
/* oklch */ color: oklch(29.7% 0.103 285.1);
Tailwind
colors: {
  custom: {
    50: '#695c8b',
    500: '#2a215d',
    950: '#000000',
  },
}
SCSS
$custom: #2a215d;
$custom-light: #695c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a215d",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 249,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29655,
    "c": 0.10274,
    "h": 285.1
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#2A215D
secondary
#869149
accent
#D751C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2A215D

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

Preview Lab → · Contrast checker → · Palette generator →

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