#2F21A8#2F21A8

#2F21A8 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.200 H 275.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2F21A8
RGBrgb(47, 33, 168)
HSLhsl(246, 67%, 39%)
HSVhsv(246, 80%, 66%)
CMYKcmyk(72%, 80.4%, 0%, 34.1%)
CIE-LABlab(25.32, 47.95, -68.89)
CIE-LCHlch(25.32, 83.94, 304.84°)
OKLaboklab(37.74% 0.0194 -0.1992)
OKLCHoklch(37.74% 0.2 275.5)
XYZxyz(8.7817, 4.5184, 37.4475)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21A8 #9AA821
analogous
#2157A8 #2F21A8 #7321A8
triadic
#2F21A8 #A82F21 #21A82F
tetradic
#2F21A8 #A82157 #9AA821 #21A873
square
#2F21A8 #A82157 #9AA821 #21A873
split-complementary
#2F21A8 #A87321 #57A821
monochromatic
#120D42 #211775 #2F21A8 #4130D6 #7063E0

Accessibility & contrast

On white

11.03
#2F21A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F21A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21A8
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21A8#FFFFFF#000000##FFFFFF
##2F21A81.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f21a8;
/* rgb */ color: rgb(47, 33, 168);
/* oklch */ color: oklch(37.7% 0.200 275.5);
Tailwind
colors: {
  custom: {
    50: '#7b60c3',
    500: '#2f21a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f21a8;
$custom-light: #7b60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21a8",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 246.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37737,
    "c": 0.20012,
    "h": 275.5
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#2F21A8
secondary
#BBC55F
accent
#EA3ED8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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