#2521C2#2521C2

#2521C2 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.2% C 0.233 H 270.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2521C2
RGBrgb(37, 33, 194)
HSLhsl(241, 71%, 45%)
HSVhsv(241, 83%, 76%)
CMYKcmyk(80.9%, 83%, 0%, 23.9%)
CIE-LABlab(27.78, 55.27, -80.33)
CIE-LCHlch(27.78, 97.51, 304.53°)
OKLaboklab(40.17% 0.0008 -0.2325)
OKLCHoklch(40.17% 0.233 270.2)
XYZxyz(11.0411, 5.3748, 51.4840)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2521C2 #BEC221
analogous
#216DC2 #2521C2 #7621C2
triadic
#2521C2 #C22521 #21C225
tetradic
#2521C2 #C2216D #BEC221 #21C276
square
#2521C2 #C2216D #BEC221 #21C276
split-complementary
#2521C2 #C27621 #6DC221
monochromatic
#110F59 #1B188E #2521C2 #4541DF #7976E8

Accessibility & contrast

On white

10.12
#2521C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2521C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2521C2
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2521C2#FFFFFF#000000##FFFFFF
##2521C21.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#0039BF
Tritanopia (blue-blind)
#005674
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2521c2;
/* rgb */ color: rgb(37, 33, 194);
/* oklch */ color: oklch(40.2% 0.233 270.2);
Tailwind
colors: {
  custom: {
    50: '#7e62d6',
    500: '#2521c2',
    950: '#000000',
  },
}
SCSS
$custom: #2521c2;
$custom-light: #7e62d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2521c2",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 241.491,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40166,
    "c": 0.23252,
    "h": 270.2
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#2521C2
secondary
#CDCF70
accent
#EE3AE9
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0515
muted
#7D7A83

Preview Lab

Preview with #2521C2

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

Preview Lab → · Contrast checker → · Palette generator →

#2521C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva