#2F21AC#2F21AC

#2F21AC is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.205 H 275.1°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F21AC
RGBrgb(47, 33, 172)
HSLhsl(246, 68%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(72.7%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.77, 49.19, -70.55)
CIE-LCHlch(25.77, 86.00, 304.89°)
OKLaboklab(38.19% 0.0183 -0.204)
OKLCHoklch(38.19% 0.205 275.1)
XYZxyz(9.1601, 4.6697, 39.4403)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21AC #9EAC21
analogous
#2159AC #2F21AC #7421AC
triadic
#2F21AC #AC2F21 #21AC2F
tetradic
#2F21AC #AC2159 #9EAC21 #21AC74
square
#2F21AC #AC2159 #9EAC21 #21AC74
split-complementary
#2F21AC #AC7421 #59AC21
monochromatic
#130D45 #211779 #2F21AC #4332D8 #7266E2

Accessibility & contrast

On white

10.86
#2F21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21AC
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21AC#FFFFFF#000000##FFFFFF
##2F21AC1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0037AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f21ac;
/* rgb */ color: rgb(47, 33, 172);
/* oklch */ color: oklch(38.2% 0.205 275.1);
Tailwind
colors: {
  custom: {
    50: '#7c60c6',
    500: '#2f21ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f21ac;
$custom-light: #7c60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21ac",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 246.043,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.2048,
    "h": 275.1
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#2F21AC
secondary
#BDC762
accent
#EB3DD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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