#2F1046#2F1046

#2F1046 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.097 H 307.0°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1046
RGBrgb(47, 16, 70)
HSLhsl(274, 63%, 17%)
HSVhsv(274, 77%, 27%)
CMYKcmyk(32.9%, 77.1%, 0%, 72.5%)
CIE-LABlab(12.07, 26.96, -27.44)
CIE-LCHlch(12.07, 38.47, 314.49°)
OKLaboklab(25.39% 0.0587 -0.0778)
OKLCHoklch(25.39% 0.097 307)
XYZxyz(2.4628, 1.4171, 5.9370)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1046 #274610
analogous
#141046 #2F1046 #461042
triadic
#2F1046 #462F10 #10462F
tetradic
#2F1046 #461410 #274610 #104246
square
#2F1046 #461410 #274610 #104246
split-complementary
#2F1046 #424610 #104614
monochromatic
#110619 #110619 #2F1046 #501B78 #7227AA

Accessibility & contrast

On white

16.36
#2F1046 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F1046 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1046
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1046#FFFFFF#000000##FFFFFF
##2F10461.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#032045
Tritanopia (blue-blind)
#2B1C29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1046;
/* rgb */ color: rgb(47, 16, 70);
/* oklch */ color: oklch(25.4% 0.097 307.0);
Tailwind
colors: {
  custom: {
    50: '#6a517a',
    500: '#2f1046',
    950: '#000000',
  },
}
SCSS
$custom: #2f1046;
$custom-light: #6a517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1046",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 274.444,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25388,
    "c": 0.09746,
    "h": 307
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#2F1046
secondary
#538032
accent
#E64288
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1046

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

Preview Lab → · Contrast checker → · Palette generator →

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