#2F21C1#2F21C1

#2F21C1 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.6% C 0.229 H 273.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2F21C1
RGBrgb(47, 33, 193)
HSLhsl(245, 71%, 44%)
HSVhsv(245, 83%, 76%)
CMYKcmyk(75.6%, 82.9%, 0%, 24.3%)
CIE-LABlab(28.22, 55.52, -78.99)
CIE-LCHlch(28.22, 96.55, 305.10°)
OKLaboklab(40.59% 0.0127 -0.2284)
OKLCHoklch(40.59% 0.229 273.2)
XYZxyz(11.3386, 5.5411, 50.9137)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21C1 #B3C121
analogous
#2163C1 #2F21C1 #7F21C1
triadic
#2F21C1 #C12F21 #21C12F
tetradic
#2F21C1 #C12163 #B3C121 #21C17F
square
#2F21C1 #C12163 #B3C121 #21C17F
split-complementary
#2F21C1 #C17F21 #63C121
monochromatic
#160F58 #22188D #2F21C1 #4F41DE #7F75E7

Accessibility & contrast

On white

9.96
#2F21C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F21C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21C1
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21C1#FFFFFF#000000##FFFFFF
##2F21C11.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC5
Deuteranopia (green-blind)
#003BBE
Tritanopia (blue-blind)
#005573
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f21c1;
/* rgb */ color: rgb(47, 33, 193);
/* oklch */ color: oklch(40.6% 0.229 273.2);
Tailwind
colors: {
  custom: {
    50: '#8162d5',
    500: '#2f21c1',
    950: '#000000',
  },
}
SCSS
$custom: #2f21c1;
$custom-light: #8162d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21c1",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 193
  },
  "hsl": {
    "h": 245.25,
    "s": 70.796,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40592,
    "c": 0.2288,
    "h": 273.2
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#2F21C1
secondary
#C6CF6F
accent
#EE3ADE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2F21C1

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

Preview Lab → · Contrast checker → · Palette generator →

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