#2F217D#2F217D

#2F217D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.147 H 281.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2F217D
RGBrgb(47, 33, 125)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 74%, 49%)
CMYKcmyk(62.4%, 73.6%, 0%, 51%)
CIE-LABlab(20.72, 34.13, -49.85)
CIE-LCHlch(20.72, 60.42, 304.40°)
OKLaboklab(33.14% 0.0299 -0.1437)
OKLCHoklch(33.14% 0.147 281.7)
XYZxyz(5.4167, 3.1723, 19.7249)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F217D #6F7D21
analogous
#21417D #2F217D #5D217D
triadic
#2F217D #7D2F21 #217D2F
tetradic
#2F217D #7D2141 #6F7D21 #217D5D
square
#2F217D #7D2141 #6F7D21 #217D5D
split-complementary
#2F217D #7D5D21 #417D21
monochromatic
#0B071C #1D144D #2F217D #412EAD #5E49CF

Accessibility & contrast

On white

12.85
#2F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F217D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F217D#FFFFFF#000000##FFFFFF
##2F217D1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f217d;
/* rgb */ color: rgb(47, 33, 125);
/* oklch */ color: oklch(33.1% 0.147 281.7);
Tailwind
colors: {
  custom: {
    50: '#725ea4',
    500: '#2f217d',
    950: '#000000',
  },
}
SCSS
$custom: #2f217d;
$custom-light: #725ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f217d",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 249.13,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.14675,
    "h": 281.7
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#2F217D
secondary
#A0B04A
accent
#E146CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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