#2F1686#2F1686

#2F1686 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.169 H 281.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1686
RGBrgb(47, 22, 134)
HSLhsl(253, 72%, 31%)
HSVhsv(253, 84%, 53%)
CMYKcmyk(64.9%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.63, 42.81, -57.34)
CIE-LCHlch(19.63, 71.55, 306.75°)
OKLaboklab(32.66% 0.0348 -0.1654)
OKLCHoklch(32.66% 0.169 281.9)
XYZxyz(5.7609, 2.8990, 22.8056)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1686 #6D8616
analogous
#163586 #2F1686 #671686
triadic
#2F1686 #862F16 #16862F
tetradic
#2F1686 #861635 #6D8616 #168667
square
#2F1686 #861635 #6D8616 #168667
split-complementary
#2F1686 #866716 #358616
monochromatic
#0A051D #1D0D51 #2F1686 #411FBB #5D38DE

Accessibility & contrast

On white

13.29
#2F1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1686
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1686#FFFFFF#000000##FFFFFF
##2F16861.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1686;
/* rgb */ color: rgb(47, 22, 134);
/* oklch */ color: oklch(32.7% 0.169 281.9);
Tailwind
colors: {
  custom: {
    50: '#7558aa',
    500: '#2f1686',
    950: '#000000',
  },
}
SCSS
$custom: #2f1686;
$custom-light: #7558aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1686",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 253.393,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3266,
    "c": 0.16904,
    "h": 281.9
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#2F1686
secondary
#9EBA3E
accent
#EF39C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1686

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

Preview Lab → · Contrast checker → · Palette generator →

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