#2F1680#2F1680

#2F1680 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.162 H 283.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2F1680
RGBrgb(47, 22, 128)
HSLhsl(254, 71%, 29%)
HSVhsv(254, 83%, 50%)
CMYKcmyk(63.3%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.96, 41.00, -54.67)
CIE-LCHlch(18.96, 68.33, 306.87°)
OKLaboklab(31.99% 0.0368 -0.1576)
OKLCHoklch(31.99% 0.162 283.2)
XYZxyz(5.3543, 2.7363, 20.6639)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1680 #678016
analogous
#163280 #2F1680 #641680
triadic
#2F1680 #802F16 #16802F
tetradic
#2F1680 #801632 #678016 #168064
square
#2F1680 #801632 #678016 #168064
split-complementary
#2F1680 #806416 #328016
monochromatic
#0A041A #1C0D4C #2F1680 #421FB4 #5C34DC

Accessibility & contrast

On white

13.57
#2F1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1680
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1680#FFFFFF#000000##FFFFFF
##2F16801.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1680;
/* rgb */ color: rgb(47, 22, 128);
/* oklch */ color: oklch(32.0% 0.162 283.2);
Tailwind
colors: {
  custom: {
    50: '#7358a6',
    500: '#2f1680',
    950: '#000000',
  },
}
SCSS
$custom: #2f1680;
$custom-light: #7358a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1680",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 254.151,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31989,
    "c": 0.16189,
    "h": 283.2
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#2F1680
secondary
#98B53D
accent
#ED3AC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1680

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

Preview Lab → · Contrast checker → · Palette generator →

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