#2A218D#2A218D

#2A218D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.168 H 276.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2A218D
RGBrgb(42, 33, 141)
HSLhsl(245, 62%, 34%)
HSVhsv(245, 77%, 55%)
CMYKcmyk(70.2%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.95, 38.81, -57.90)
CIE-LCHlch(21.95, 69.71, 303.83°)
OKLaboklab(34.4% 0.0192 -0.1673)
OKLCHoklch(34.4% 0.168 276.5)
XYZxyz(6.3048, 3.5025, 25.5379)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A218D #848D21
analogous
#214E8D #2A218D #60218D
triadic
#2A218D #8D2A21 #218D2A
tetradic
#2A218D #8D214E #848D21 #218D60
square
#2A218D #8D214E #848D21 #218D60
split-complementary
#2A218D #8D6021 #4E8D21
monochromatic
#0C0A2A #1B155B #2A218D #392DBF #5D52D6

Accessibility & contrast

On white

12.35
#2A218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A218D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A218D#FFFFFF#000000##FFFFFF
##2A218D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a218d;
/* rgb */ color: rgb(42, 33, 141);
/* oklch */ color: oklch(34.4% 0.168 276.5);
Tailwind
colors: {
  custom: {
    50: '#735eaf',
    500: '#2a218d',
    950: '#000000',
  },
}
SCSS
$custom: #2a218d;
$custom-light: #735eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a218d",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 245,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.16843,
    "h": 276.5
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#2A218D
secondary
#B1BA50
accent
#E543D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A218D

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

Preview Lab → · Contrast checker → · Palette generator →

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