#2F1454#2F1454

#2F1454 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.109 H 298.0°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#2F1454
RGBrgb(47, 20, 84)
HSLhsl(265, 62%, 20%)
HSVhsv(265, 76%, 33%)
CMYKcmyk(44%, 76.2%, 0%, 67.1%)
CIE-LABlab(14.09, 28.72, -33.82)
CIE-LCHlch(14.09, 44.37, 310.35°)
OKLaboklab(27.21% 0.0513 -0.0966)
OKLCHoklch(27.21% 0.109 298)
XYZxyz(3.0223, 1.7447, 8.5633)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1454 #395414
analogous
#141954 #2F1454 #4F1454
triadic
#2F1454 #542F14 #14542F
tetradic
#2F1454 #541419 #395414 #14544F
square
#2F1454 #541419 #395414 #14544F
split-complementary
#2F1454 #544F14 #195414
monochromatic
#0E0619 #130823 #2F1454 #4B2085 #662CB7

Accessibility & contrast

On white

15.57
#2F1454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1454
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1454#FFFFFF#000000##FFFFFF
##2F14541.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#262432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1454;
/* rgb */ color: rgb(47, 20, 84);
/* oklch */ color: oklch(27.2% 0.109 298.0);
Tailwind
colors: {
  custom: {
    50: '#6c5485',
    500: '#2f1454',
    950: '#000000',
  },
}
SCSS
$custom: #2f1454;
$custom-light: #6c5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1454",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 265.313,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27207,
    "c": 0.10938,
    "h": 298
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#2F1454
secondary
#688C38
accent
#E543A1
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1454

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

Preview Lab → · Contrast checker → · Palette generator →

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