#2F1056#2F1056

#2F1056 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.9% C 0.117 H 298.1°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1056
RGBrgb(47, 16, 86)
HSLhsl(267, 69%, 20%)
HSVhsv(267, 81%, 34%)
CMYKcmyk(45.3%, 81.4%, 0%, 66.3%)
CIE-LABlab(13.51, 31.45, -36.11)
CIE-LCHlch(13.51, 47.89, 311.06°)
OKLaboklab(26.86% 0.0552 -0.1033)
OKLCHoklch(26.86% 0.117 298.1)
XYZxyz(3.0369, 1.6468, 8.9601)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1056 #375610
analogous
#101456 #2F1056 #521056
triadic
#2F1056 #562F10 #10562F
tetradic
#2F1056 #561014 #375610 #105652
square
#2F1056 #561014 #375610 #105652
split-complementary
#2F1056 #565210 #145610
monochromatic
#0E051A #130622 #2F1056 #4B1A8A #6723BD

Accessibility & contrast

On white

15.80
#2F1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1056
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1056#FFFFFF#000000##FFFFFF
##2F10561.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#252232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1056;
/* rgb */ color: rgb(47, 16, 86);
/* oklch */ color: oklch(26.9% 0.117 298.1);
Tailwind
colors: {
  custom: {
    50: '#6c5286',
    500: '#2f1056',
    950: '#000000',
  },
}
SCSS
$custom: #2f1056;
$custom-light: #6c5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1056",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 266.571,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.26859,
    "c": 0.1171,
    "h": 298.1
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#2F1056
secondary
#668F32
accent
#EB3C9E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1056

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

Preview Lab → · Contrast checker → · Palette generator →

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