#2721C2#2721C2

#2721C2 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.3% C 0.232 H 270.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2721C2
RGBrgb(39, 33, 194)
HSLhsl(242, 71%, 45%)
HSVhsv(242, 83%, 76%)
CMYKcmyk(79.9%, 83%, 0%, 23.9%)
CIE-LABlab(27.88, 55.37, -80.16)
CIE-LCHlch(27.88, 97.42, 304.63°)
OKLaboklab(40.27% 0.003 -0.232)
OKLCHoklch(40.27% 0.232 270.7)
XYZxyz(11.1149, 5.4128, 51.4875)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2721C2 #BCC221
analogous
#216CC2 #2721C2 #7821C2
triadic
#2721C2 #C22721 #21C227
tetradic
#2721C2 #C2216C #BCC221 #21C278
square
#2721C2 #C2216C #BCC221 #21C278
split-complementary
#2721C2 #C27821 #6CC221
monochromatic
#120F59 #1C188E #2721C2 #4741DF #7A76E8

Accessibility & contrast

On white

10.08
#2721C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2721C2
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2721C2#FFFFFF#000000##FFFFFF
##2721C21.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.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: #2721c2;
/* rgb */ color: rgb(39, 33, 194);
/* oklch */ color: oklch(40.3% 0.232 270.7);
Tailwind
colors: {
  custom: {
    50: '#7f62d6',
    500: '#2721c2',
    950: '#000000',
  },
}
SCSS
$custom: #2721c2;
$custom-light: #7f62d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2721c2",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 242.236,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40265,
    "c": 0.23201,
    "h": 270.7
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#2721C2
secondary
#CBCF70
accent
#EE3AE7
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0515
muted
#7D7A83

Preview Lab

Preview with #2721C2

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

Preview Lab → · Contrast checker → · Palette generator →

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