#2F1246#2F1246

#2F1246 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.094 H 306.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1246
RGBrgb(47, 18, 70)
HSLhsl(273, 59%, 17%)
HSVhsv(273, 74%, 27%)
CMYKcmyk(32.9%, 74.3%, 0%, 72.5%)
CIE-LABlab(12.48, 25.84, -26.79)
CIE-LCHlch(12.48, 37.22, 313.97°)
OKLaboklab(25.68% 0.0561 -0.0759)
OKLCHoklch(25.68% 0.094 306.5)
XYZxyz(2.4939, 1.4792, 5.9473)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1246 #294612
analogous
#151246 #2F1246 #461243
triadic
#2F1246 #462F12 #12462F
tetradic
#2F1246 #461512 #294612 #124346
square
#2F1246 #461512 #294612 #124346
split-complementary
#2F1246 #434612 #124615
monochromatic
#100618 #100618 #2F1246 #501F77 #702BA7

Accessibility & contrast

On white

16.21
#2F1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1246
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1246#FFFFFF#000000##FFFFFF
##2F12461.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#062145
Tritanopia (blue-blind)
#2B1D2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1246;
/* rgb */ color: rgb(47, 18, 70);
/* oklch */ color: oklch(25.7% 0.094 306.5);
Tailwind
colors: {
  custom: {
    50: '#6a527a',
    500: '#2f1246',
    950: '#000000',
  },
}
SCSS
$custom: #2f1246;
$custom-light: #6a527a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1246",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 273.462,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25677,
    "c": 0.09438,
    "h": 306.5
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#2F1246
secondary
#567F35
accent
#E2468B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1246

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

Preview Lab → · Contrast checker → · Palette generator →

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