#2F1678#2F1678

#2F1678 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.152 H 285.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2F1678
RGBrgb(47, 22, 120)
HSLhsl(255, 69%, 28%)
HSVhsv(255, 82%, 47%)
CMYKcmyk(60.8%, 81.7%, 0%, 52.9%)
CIE-LABlab(18.07, 38.57, -51.02)
CIE-LCHlch(18.07, 63.96, 307.09°)
OKLaboklab(31.11% 0.0395 -0.147)
OKLCHoklch(31.11% 0.152 285)
XYZxyz(4.8483, 2.5339, 17.9993)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1678 #5F7816
analogous
#162E78 #2F1678 #601678
triadic
#2F1678 #782F16 #16782F
tetradic
#2F1678 #78162E #5F7816 #167860
square
#2F1678 #78162E #5F7816 #167860
split-complementary
#2F1678 #786016 #2E7816
monochromatic
#0A051A #1B0D44 #2F1678 #431FAC #5B2FD9

Accessibility & contrast

On white

13.94
#2F1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1678
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1678#FFFFFF#000000##FFFFFF
##2F16781.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#053347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1678;
/* rgb */ color: rgb(47, 22, 120);
/* oklch */ color: oklch(31.1% 0.152 285.0);
Tailwind
colors: {
  custom: {
    50: '#7257a0',
    500: '#2f1678',
    950: '#000000',
  },
}
SCSS
$custom: #2f1678;
$custom-light: #7257a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1678",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 255.306,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31112,
    "c": 0.15222,
    "h": 285
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2F1678
secondary
#91AD3C
accent
#EC3CBF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1678

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

Preview Lab → · Contrast checker → · Palette generator →

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