#2F1268#2F1268

#2F1268 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.137 H 290.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#2F1268
RGBrgb(47, 18, 104)
HSLhsl(260, 70%, 24%)
HSVhsv(260, 83%, 41%)
CMYKcmyk(54.8%, 82.7%, 0%, 59.2%)
CIE-LABlab(15.68, 35.72, -44.58)
CIE-LCHlch(15.68, 57.12, 308.71°)
OKLaboklab(28.93% 0.0477 -0.1281)
OKLCHoklch(28.93% 0.137 290.4)
XYZxyz(3.8866, 2.0363, 13.2823)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1268 #4B6812
analogous
#122068 #2F1268 #5A1268
triadic
#2F1268 #682F12 #12682F
tetradic
#2F1268 #681220 #4B6812 #12685A
square
#2F1268 #681220 #4B6812 #12685A
split-complementary
#2F1268 #685A12 #206812
monochromatic
#0C051A #170934 #2F1268 #471B9C #5E24D0

Accessibility & contrast

On white

14.92
#2F1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1268
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1268#FFFFFF#000000##FFFFFF
##2F12681.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#1A2B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1268;
/* rgb */ color: rgb(47, 18, 104);
/* oklch */ color: oklch(28.9% 0.137 290.4);
Tailwind
colors: {
  custom: {
    50: '#6f5494',
    500: '#2f1268',
    950: '#000000',
  },
}
SCSS
$custom: #2f1268;
$custom-light: #6f5494;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1268",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 260.233,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28929,
    "c": 0.13672,
    "h": 290.4
  },
  "luminance": 0.02036
}

Semantic roles & 50–950 ramp

primary
#2F1268
secondary
#7CA036
accent
#ED3BB1
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1268

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

Preview Lab → · Contrast checker → · Palette generator →

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