#2F1047#2F1047

#2F1047 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.099 H 306.4°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1047
RGBrgb(47, 16, 71)
HSLhsl(274, 63%, 17%)
HSVhsv(274, 77%, 28%)
CMYKcmyk(33.8%, 77.5%, 0%, 72.2%)
CIE-LABlab(12.16, 27.23, -28.00)
CIE-LCHlch(12.16, 39.06, 314.20°)
OKLaboklab(25.48% 0.0585 -0.0795)
OKLCHoklch(25.48% 0.099 306.4)
XYZxyz(2.4947, 1.4299, 6.1046)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1047 #284710
analogous
#141047 #2F1047 #471044
triadic
#2F1047 #472F10 #10472F
tetradic
#2F1047 #471410 #284710 #104447
square
#2F1047 #471410 #284710 #104447
split-complementary
#2F1047 #444710 #104714
monochromatic
#110619 #110619 #2F1047 #501B79 #7127AB

Accessibility & contrast

On white

16.33
#2F1047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1047
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1047#FFFFFF#000000##FFFFFF
##2F10471.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#2B1C2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1047;
/* rgb */ color: rgb(47, 16, 71);
/* oklch */ color: oklch(25.5% 0.099 306.4);
Tailwind
colors: {
  custom: {
    50: '#6a517b',
    500: '#2f1047',
    950: '#000000',
  },
}
SCSS
$custom: #2f1047;
$custom-light: #6a517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1047",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 273.818,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25475,
    "c": 0.0987,
    "h": 306.4
  },
  "luminance": 0.0143
}

Semantic roles & 50–950 ramp

primary
#2F1047
secondary
#548132
accent
#E64289
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1047

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

Preview Lab → · Contrast checker → · Palette generator →

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