#2A21AF#2A21AF

#2A21AF is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.210 H 273.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2A21AF
RGBrgb(42, 33, 175)
HSLhsl(244, 68%, 41%)
HSVhsv(244, 81%, 69%)
CMYKcmyk(76%, 81.1%, 0%, 31.4%)
CIE-LABlab(25.79, 49.75, -72.34)
CIE-LCHlch(25.79, 87.79, 304.52°)
OKLaboklab(38.21% 0.011 -0.2093)
OKLCHoklch(38.21% 0.21 273)
XYZxyz(9.2340, 4.6741, 40.9647)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21AF #A6AF21
analogous
#215FAF #2A21AF #7121AF
triadic
#2A21AF #AF2A21 #21AF2A
tetradic
#2A21AF #AF215F #A6AF21 #21AF71
square
#2A21AF #AF215F #A6AF21 #21AF71
split-complementary
#2A21AF #AF7121 #5FAF21
monochromatic
#110E48 #1E177C #2A21AF #3F34D9 #7068E3

Accessibility & contrast

On white

10.85
#2A21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A21AF
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21AF#FFFFFF#000000##FFFFFF
##2A21AF1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B3
Deuteranopia (green-blind)
#0036AD
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a21af;
/* rgb */ color: rgb(42, 33, 175);
/* oklch */ color: oklch(38.2% 0.210 273.0);
Tailwind
colors: {
  custom: {
    50: '#7b60c8',
    500: '#2a21af',
    950: '#000000',
  },
}
SCSS
$custom: #2a21af;
$custom-light: #7b60c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21af",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 243.803,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38209,
    "c": 0.20957,
    "h": 273
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#2A21AF
secondary
#C2C864
accent
#EB3DE0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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