#2D21A3#2D21A3

#2D21A3 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.195 H 275.3°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2D21A3
RGBrgb(45, 33, 163)
HSLhsl(246, 66%, 38%)
HSVhsv(246, 80%, 64%)
CMYKcmyk(72.4%, 79.8%, 0%, 36.1%)
CIE-LABlab(24.61, 46.22, -67.04)
CIE-LCHlch(24.61, 81.43, 304.58°)
OKLaboklab(37.04% 0.0179 -0.1939)
OKLCHoklch(37.04% 0.195 275.3)
XYZxyz(8.2347, 4.2891, 35.0371)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21A3 #97A321
analogous
#2156A3 #2D21A3 #6E21A3
triadic
#2D21A3 #A32D21 #21A32D
tetradic
#2D21A3 #A32156 #97A321 #21A36E
square
#2D21A3 #A32156 #97A321 #21A36E
split-complementary
#2D21A3 #A36E21 #56A321
monochromatic
#110C3D #1F1770 #2D21A3 #3C2DD4 #6B60DF

Accessibility & contrast

On white

11.30
#2D21A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D21A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21A3
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21A3#FFFFFF#000000##FFFFFF
##2D21A31.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A7
Deuteranopia (green-blind)
#0034A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d21a3;
/* rgb */ color: rgb(45, 33, 163);
/* oklch */ color: oklch(37.0% 0.195 275.3);
Tailwind
colors: {
  custom: {
    50: '#7960c0',
    500: '#2d21a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d21a3;
$custom-light: #7960c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21a3",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 163
  },
  "hsl": {
    "h": 245.538,
    "s": 66.327,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37038,
    "c": 0.19469,
    "h": 275.3
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#2D21A3
secondary
#BAC35C
accent
#E93FD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D21A3

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

Preview Lab → · Contrast checker → · Palette generator →

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