#2F1356#2F1356

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

Color values

HEX#2F1356
RGBrgb(47, 19, 86)
HSLhsl(265, 64%, 21%)
HSVhsv(265, 78%, 34%)
CMYKcmyk(45.3%, 77.9%, 0%, 66.3%)
CIE-LABlab(14.07, 29.87, -35.20)
CIE-LCHlch(14.07, 46.17, 310.32°)
OKLaboklab(27.25% 0.052 -0.1006)
OKLCHoklch(27.25% 0.113 297.3)
XYZxyz(3.0844, 1.7419, 8.9760)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1356 #3A5613
analogous
#131856 #2F1356 #501356
triadic
#2F1356 #562F13 #13562F
tetradic
#2F1356 #561318 #3A5613 #135650
square
#2F1356 #561318 #3A5613 #135650
split-complementary
#2F1356 #565013 #185613
monochromatic
#0E0619 #140824 #2F1356 #4A1E88 #6629BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1356#FFFFFF#000000##FFFFFF
##2F13561.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)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#252433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1356;
/* rgb */ color: rgb(47, 19, 86);
/* oklch */ color: oklch(27.3% 0.113 297.3);
Tailwind
colors: {
  custom: {
    50: '#6c5386',
    500: '#2f1356',
    950: '#000000',
  },
}
SCSS
$custom: #2f1356;
$custom-light: #6c5386;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1356",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 265.075,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27253,
    "c": 0.11328,
    "h": 297.3
  },
  "luminance": 0.01742
}

Semantic roles & 50–950 ramp

primary
#2F1356
secondary
#6A8E36
accent
#E741A2
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1356

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

Preview Lab → · Contrast checker → · Palette generator →

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