#2F217C#2F217C

#2F217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.145 H 281.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2F217C
RGBrgb(47, 33, 124)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 73%, 49%)
CMYKcmyk(62.1%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.62, 33.80, -49.38)
CIE-LCHlch(20.62, 59.84, 304.39°)
OKLaboklab(33.03% 0.0301 -0.1423)
OKLCHoklch(33.03% 0.145 281.9)
XYZxyz(5.3531, 3.1469, 19.3902)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F217C #6E7C21
analogous
#21407C #2F217C #5C217C
triadic
#2F217C #7C2F21 #217C2F
tetradic
#2F217C #7C2140 #6E7C21 #217C5C
square
#2F217C #7C2140 #6E7C21 #217C5C
split-complementary
#2F217C #7C5C21 #407C21
monochromatic
#0A071B #1D144C #2F217C #412EAC #5D49CF

Accessibility & contrast

On white

12.89
#2F217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F217C
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F217C#FFFFFF#000000##FFFFFF
##2F217C1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f217c;
/* rgb */ color: rgb(47, 33, 124);
/* oklch */ color: oklch(33.0% 0.145 281.9);
Tailwind
colors: {
  custom: {
    50: '#715ea3',
    500: '#2f217c',
    950: '#000000',
  },
}
SCSS
$custom: #2f217c;
$custom-light: #715ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f217c",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 249.231,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33035,
    "c": 0.14543,
    "h": 281.9
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#2F217C
secondary
#9FAF4A
accent
#E147C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F217C

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

Preview Lab → · Contrast checker → · Palette generator →

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