#2F217E#2F217E

#2F217E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.148 H 281.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2F217E
RGBrgb(47, 33, 126)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 74%, 49%)
CMYKcmyk(62.7%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.82, 34.46, -50.33)
CIE-LCHlch(20.82, 61.00, 304.40°)
OKLaboklab(33.24% 0.0297 -0.1451)
OKLCHoklch(33.24% 0.148 281.6)
XYZxyz(5.4809, 3.1980, 20.0631)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F217E #707E21
analogous
#21417E #2F217E #5D217E
triadic
#2F217E #7E2F21 #217E2F
tetradic
#2F217E #7E2141 #707E21 #217E5D
square
#2F217E #7E2141 #707E21 #217E5D
split-complementary
#2F217E #7E5D21 #417E21
monochromatic
#0B081D #1D144E #2F217E #412EAE #5E4AD0

Accessibility & contrast

On white

12.81
#2F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F217E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F217E#FFFFFF#000000##FFFFFF
##2F217E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f217e;
/* rgb */ color: rgb(47, 33, 126);
/* oklch */ color: oklch(33.2% 0.148 281.6);
Tailwind
colors: {
  custom: {
    50: '#725ea4',
    500: '#2f217e',
    950: '#000000',
  },
}
SCSS
$custom: #2f217e;
$custom-light: #725ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f217e",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 249.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33236,
    "c": 0.14806,
    "h": 281.6
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#2F217E
secondary
#A1B14A
accent
#E246CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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