#2F1254#2F1254

#2F1254 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.112 H 298.6°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2F1254
RGBrgb(47, 18, 84)
HSLhsl(266, 65%, 20%)
HSVhsv(266, 79%, 33%)
CMYKcmyk(44%, 78.6%, 0%, 67.1%)
CIE-LABlab(13.69, 29.83, -34.46)
CIE-LCHlch(13.69, 45.58, 310.88°)
OKLaboklab(26.93% 0.0536 -0.0984)
OKLCHoklch(26.93% 0.112 298.6)
XYZxyz(2.9884, 1.6770, 8.5520)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1254 #375412
analogous
#121654 #2F1254 #501254
triadic
#2F1254 #542F12 #12542F
tetradic
#2F1254 #541216 #375412 #125450
square
#2F1254 #541216 #375412 #125450
split-complementary
#2F1254 #545012 #165412
monochromatic
#0E0519 #130722 #2F1254 #4B1D86 #6728B9

Accessibility & contrast

On white

15.73
#2F1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1254
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1254#FFFFFF#000000##FFFFFF
##2F12541.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1254;
/* rgb */ color: rgb(47, 18, 84);
/* oklch */ color: oklch(26.9% 0.112 298.6);
Tailwind
colors: {
  custom: {
    50: '#6c5385',
    500: '#2f1254',
    950: '#000000',
  },
}
SCSS
$custom: #2f1254;
$custom-light: #6c5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1254",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 266.364,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26928,
    "c": 0.11209,
    "h": 298.6
  },
  "luminance": 0.01677
}

Semantic roles & 50–950 ramp

primary
#2F1254
secondary
#668D35
accent
#E8409E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1254

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

Preview Lab → · Contrast checker → · Palette generator →

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