#2F1374#2F1374

#2F1374 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.150 H 286.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2F1374
RGBrgb(47, 19, 116)
HSLhsl(257, 72%, 26%)
HSVhsv(257, 84%, 45%)
CMYKcmyk(59.5%, 83.6%, 0%, 54.5%)
CIE-LABlab(17.14, 38.81, -49.99)
CIE-LCHlch(17.14, 63.29, 307.83°)
OKLaboklab(30.33% 0.0429 -0.144)
OKLCHoklch(30.33% 0.15 286.6)
XYZxyz(4.5566, 2.3308, 16.7294)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1374 #587413
analogous
#132774 #2F1374 #601374
triadic
#2F1374 #742F13 #13742F
tetradic
#2F1374 #741327 #587413 #137460
square
#2F1374 #741327 #587413 #137460
split-complementary
#2F1374 #746013 #277413
monochromatic
#0B041A #1A0A3F #2F1374 #441CA9 #5A26DB

Accessibility & contrast

On white

14.32
#2F1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1374
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1374#FFFFFF#000000##FFFFFF
##2F13741.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#0D3044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1374;
/* rgb */ color: rgb(47, 19, 116);
/* oklch */ color: oklch(30.3% 0.150 286.6);
Tailwind
colors: {
  custom: {
    50: '#71559d',
    500: '#2f1374',
    950: '#000000',
  },
}
SCSS
$custom: #2f1374;
$custom-light: #71559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1374",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 257.32,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30331,
    "c": 0.1502,
    "h": 286.6
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#2F1374
secondary
#8AAA38
accent
#EF39BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1374

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

Preview Lab → · Contrast checker → · Palette generator →

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