#2F1354#2F1354

#2F1354 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.111 H 298.3°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2F1354
RGBrgb(47, 19, 84)
HSLhsl(266, 63%, 20%)
HSVhsv(266, 77%, 33%)
CMYKcmyk(44%, 77.4%, 0%, 67.1%)
CIE-LABlab(13.89, 29.28, -34.14)
CIE-LCHlch(13.89, 44.98, 310.62°)
OKLaboklab(27.07% 0.0525 -0.0975)
OKLCHoklch(27.07% 0.111 298.3)
XYZxyz(3.0050, 1.7101, 8.5576)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1354 #385413
analogous
#131754 #2F1354 #4F1354
triadic
#2F1354 #542F13 #13542F
tetradic
#2F1354 #541317 #385413 #13544F
square
#2F1354 #541317 #385413 #13544F
split-complementary
#2F1354 #544F13 #175413
monochromatic
#0E0619 #130822 #2F1354 #4B1E86 #672AB8

Accessibility & contrast

On white

15.65
#2F1354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1354
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1354#FFFFFF#000000##FFFFFF
##2F13541.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#262332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1354;
/* rgb */ color: rgb(47, 19, 84);
/* oklch */ color: oklch(27.1% 0.111 298.3);
Tailwind
colors: {
  custom: {
    50: '#6c5385',
    500: '#2f1354',
    950: '#000000',
  },
}
SCSS
$custom: #2f1354;
$custom-light: #6c5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1354",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 265.846,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27065,
    "c": 0.11075,
    "h": 298.3
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#2F1354
secondary
#678C36
accent
#E6429F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1354

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

Preview Lab → · Contrast checker → · Palette generator →

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