#2A21B0#2A21B0

#2A21B0 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.211 H 272.9°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2A21B0
RGBrgb(42, 33, 176)
HSLhsl(244, 68%, 41%)
HSVhsv(244, 81%, 69%)
CMYKcmyk(76.1%, 81.3%, 0%, 31%)
CIE-LABlab(25.90, 50.05, -72.74)
CIE-LCHlch(25.90, 88.30, 304.53°)
OKLaboklab(38.32% 0.0108 -0.2105)
OKLCHoklch(38.32% 0.211 272.9)
XYZxyz(9.3326, 4.7136, 41.4838)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21B0 #A7B021
analogous
#215FB0 #2A21B0 #7121B0
triadic
#2A21B0 #B02A21 #21B02A
tetradic
#2A21B0 #B0215F #A7B021 #21B071
square
#2A21B0 #B0215F #A7B021 #21B071
split-complementary
#2A21B0 #B07121 #5FB021
monochromatic
#110E49 #1E177C #2A21B0 #3F35D9 #7069E3

Accessibility & contrast

On white

10.81
#2A21B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A21B0
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21B0#FFFFFF#000000##FFFFFF
##2A21B01.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a21b0;
/* rgb */ color: rgb(42, 33, 176);
/* oklch */ color: oklch(38.3% 0.211 272.9);
Tailwind
colors: {
  custom: {
    50: '#7b60c9',
    500: '#2a21b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a21b0;
$custom-light: #7b60c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21b0",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 243.776,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38324,
    "c": 0.21074,
    "h": 272.9
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A21B0

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

Preview Lab → · Contrast checker → · Palette generator →

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