#2F217A#2F217A

#2F217A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.143 H 282.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2F217A
RGBrgb(47, 33, 122)
HSLhsl(249, 57%, 30%)
HSVhsv(249, 73%, 48%)
CMYKcmyk(61.5%, 73%, 0%, 52.2%)
CIE-LABlab(20.43, 33.14, -48.43)
CIE-LCHlch(20.43, 58.68, 304.38°)
OKLaboklab(32.84% 0.0305 -0.1395)
OKLCHoklch(32.84% 0.143 282.3)
XYZxyz(5.2279, 3.0968, 18.7308)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F217A #6C7A21
analogous
#21407A #2F217A #5B217A
triadic
#2F217A #7A2F21 #217A2F
tetradic
#2F217A #7A2140 #6C7A21 #217A5B
square
#2F217A #7A2140 #6C7A21 #217A5B
split-complementary
#2F217A #7A5B21 #407A21
monochromatic
#0A071A #1C144A #2F217A #422EAA #5D48CD

Accessibility & contrast

On white

12.97
#2F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F217A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F217A#FFFFFF#000000##FFFFFF
##2F217A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f217a;
/* rgb */ color: rgb(47, 33, 122);
/* oklch */ color: oklch(32.8% 0.143 282.3);
Tailwind
colors: {
  custom: {
    50: '#715ea1',
    500: '#2f217a',
    950: '#000000',
  },
}
SCSS
$custom: #2f217a;
$custom-light: #715ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f217a",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 249.438,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32836,
    "c": 0.14279,
    "h": 282.3
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#2F217A
secondary
#9DAD4A
accent
#E147C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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