#2F217B#2F217B

#2F217B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.144 H 282.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2F217B
RGBrgb(47, 33, 123)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 73%, 48%)
CMYKcmyk(61.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.53, 33.47, -48.90)
CIE-LCHlch(20.53, 59.26, 304.39°)
OKLaboklab(32.93% 0.0303 -0.1409)
OKLCHoklch(32.93% 0.144 282.1)
XYZxyz(5.2902, 3.1218, 19.0588)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F217B #6D7B21
analogous
#21407B #2F217B #5C217B
triadic
#2F217B #7B2F21 #217B2F
tetradic
#2F217B #7B2140 #6D7B21 #217B5C
square
#2F217B #7B2140 #6D7B21 #217B5C
split-complementary
#2F217B #7B5C21 #407B21
monochromatic
#0A071A #1D144B #2F217B #412EAB #5D48CE

Accessibility & contrast

On white

12.93
#2F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F217B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F217B#FFFFFF#000000##FFFFFF
##2F217B1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f217b;
/* rgb */ color: rgb(47, 33, 123);
/* oklch */ color: oklch(32.9% 0.144 282.1);
Tailwind
colors: {
  custom: {
    50: '#715ea2',
    500: '#2f217b',
    950: '#000000',
  },
}
SCSS
$custom: #2f217b;
$custom-light: #715ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f217b",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 249.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32935,
    "c": 0.14411,
    "h": 282.1
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#2F217B
secondary
#9EAE4A
accent
#E147C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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