#2F21A2#2F21A2

#2F21A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.193 H 276.2°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F21A2
RGBrgb(47, 33, 162)
HSLhsl(247, 66%, 38%)
HSVhsv(247, 80%, 64%)
CMYKcmyk(71%, 79.6%, 0%, 36.5%)
CIE-LABlab(24.64, 46.08, -66.37)
CIE-LCHlch(24.64, 80.80, 304.77°)
OKLaboklab(37.07% 0.0209 -0.1919)
OKLCHoklch(37.07% 0.193 276.2)
XYZxyz(8.2356, 4.2999, 34.5714)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21A2 #94A221
analogous
#2153A2 #2F21A2 #6F21A2
triadic
#2F21A2 #A22F21 #21A22F
tetradic
#2F21A2 #A22153 #94A221 #21A26F
square
#2F21A2 #A22153 #94A221 #21A26F
split-complementary
#2F21A2 #A26F21 #53A221
monochromatic
#110C3C #20176F #2F21A2 #3E2CD4 #6D5FDE

Accessibility & contrast

On white

11.29
#2F21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21A2
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21A2#FFFFFF#000000##FFFFFF
##2F21A21.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0035A0
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f21a2;
/* rgb */ color: rgb(47, 33, 162);
/* oklch */ color: oklch(37.1% 0.193 276.2);
Tailwind
colors: {
  custom: {
    50: '#7a60bf',
    500: '#2f21a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f21a2;
$custom-light: #7a60bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21a2",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 246.512,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37067,
    "c": 0.193,
    "h": 276.2
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#2F21A2
secondary
#B8C35C
accent
#E93FD7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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