#2F21AA#2F21AA

#2F21AA is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.202 H 275.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2F21AA
RGBrgb(47, 33, 170)
HSLhsl(246, 67%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(72.4%, 80.6%, 0%, 33.3%)
CIE-LABlab(25.54, 48.57, -69.72)
CIE-LCHlch(25.54, 84.97, 304.86°)
OKLaboklab(37.96% 0.0188 -0.2016)
OKLCHoklch(37.96% 0.202 275.3)
XYZxyz(8.9695, 4.5935, 38.4363)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21AA #9CAA21
analogous
#2158AA #2F21AA #7321AA
triadic
#2F21AA #AA2F21 #21AA2F
tetradic
#2F21AA #AA2158 #9CAA21 #21AA73
square
#2F21AA #AA2158 #9CAA21 #21AA73
split-complementary
#2F21AA #AA7321 #58AA21
monochromatic
#130D43 #211777 #2F21AA #4231D7 #7164E1

Accessibility & contrast

On white

10.94
#2F21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21AA
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21AA#FFFFFF#000000##FFFFFF
##2F21AA1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0036A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f21aa;
/* rgb */ color: rgb(47, 33, 170);
/* oklch */ color: oklch(38.0% 0.202 275.3);
Tailwind
colors: {
  custom: {
    50: '#7c60c5',
    500: '#2f21aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f21aa;
$custom-light: #7c60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21aa",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 246.131,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37961,
    "c": 0.20247,
    "h": 275.3
  },
  "luminance": 0.04594
}

Semantic roles & 50–950 ramp

primary
#2F21AA
secondary
#BCC661
accent
#EA3DD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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