#2F1068#2F1068

#2F1068 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.139 H 290.8°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1068
RGBrgb(47, 16, 104)
HSLhsl(261, 73%, 24%)
HSVhsv(261, 85%, 41%)
CMYKcmyk(54.8%, 84.6%, 0%, 59.2%)
CIE-LABlab(15.35, 36.66, -45.11)
CIE-LCHlch(15.35, 58.13, 309.10°)
OKLaboklab(28.7% 0.0493 -0.1297)
OKLCHoklch(28.7% 0.139 290.8)
XYZxyz(3.8556, 1.9742, 13.2719)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1068 #496810
analogous
#101D68 #2F1068 #5B1068
triadic
#2F1068 #682F10 #10682F
tetradic
#2F1068 #68101D #496810 #10685B
square
#2F1068 #68101D #496810 #10685B
split-complementary
#2F1068 #685B10 #1D6810
monochromatic
#0C041B #170833 #2F1068 #47189D #5F20D2

Accessibility & contrast

On white

15.06
#2F1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1068
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1068#FFFFFF#000000##FFFFFF
##2F10681.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#1A2A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1068;
/* rgb */ color: rgb(47, 16, 104);
/* oklch */ color: oklch(28.7% 0.139 290.8);
Tailwind
colors: {
  custom: {
    50: '#6f5394',
    500: '#2f1068',
    950: '#000000',
  },
}
SCSS
$custom: #2f1068;
$custom-light: #6f5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1068",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 261.136,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28703,
    "c": 0.13871,
    "h": 290.8
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#2F1068
secondary
#7AA034
accent
#F038AF
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1068

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

Preview Lab → · Contrast checker → · Palette generator →

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