#2721BD#2721BD

#2721BD is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.7% C 0.226 H 271.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2721BD
RGBrgb(39, 33, 189)
HSLhsl(242, 70%, 44%)
HSVhsv(242, 83%, 74%)
CMYKcmyk(79.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(27.27, 53.86, -78.21)
CIE-LCHlch(27.27, 94.96, 304.55°)
OKLaboklab(39.67% 0.0041 -0.2263)
OKLCHoklch(39.67% 0.226 271)
XYZxyz(10.5628, 5.1920, 48.5797)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2721BD #B7BD21
analogous
#2169BD #2721BD #7521BD
triadic
#2721BD #BD2721 #21BD27
tetradic
#2721BD #BD2169 #B7BD21 #21BD75
square
#2721BD #BD2169 #B7BD21 #21BD75
split-complementary
#2721BD #BD7521 #69BD21
monochromatic
#110F55 #1C1889 #2721BD #443EDD #7672E6

Accessibility & contrast

On white

10.30
#2721BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2721BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2721BD
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2721BD#FFFFFF#000000##FFFFFF
##2721BD1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C1
Deuteranopia (green-blind)
#0038BA
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2721bd;
/* rgb */ color: rgb(39, 33, 189);
/* oklch */ color: oklch(39.7% 0.226 271.0);
Tailwind
colors: {
  custom: {
    50: '#7e61d2',
    500: '#2721bd',
    950: '#000000',
  },
}
SCSS
$custom: #2721bd;
$custom-light: #7e61d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2721bd",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 242.308,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.39674,
    "c": 0.22639,
    "h": 271
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#2721BD
secondary
#C9CD6D
accent
#ED3BE6
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2721BD

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

Preview Lab → · Contrast checker → · Palette generator →

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