#2F1272#2F1272

#2F1272 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.149 H 287.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2F1272
RGBrgb(47, 18, 114)
HSLhsl(258, 73%, 26%)
HSVhsv(258, 84%, 45%)
CMYKcmyk(58.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(16.76, 38.68, -49.32)
CIE-LCHlch(16.76, 62.68, 308.11°)
OKLaboklab(30% 0.0442 -0.142)
OKLCHoklch(30% 0.149 287.3)
XYZxyz(4.4250, 2.2516, 16.1178)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1272 #557212
analogous
#122572 #2F1272 #5F1272
triadic
#2F1272 #722F12 #12722F
tetradic
#2F1272 #721225 #557212 #12725F
square
#2F1272 #721225 #557212 #12725F
split-complementary
#2F1272 #725F12 #257212
monochromatic
#0B041A #190A3D #2F1272 #451AA7 #5B23DC

Accessibility & contrast

On white

14.48
#2F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1272
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1272#FFFFFF#000000##FFFFFF
##2F12721.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#102F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1272;
/* rgb */ color: rgb(47, 18, 114);
/* oklch */ color: oklch(30.0% 0.149 287.3);
Tailwind
colors: {
  custom: {
    50: '#71559c',
    500: '#2f1272',
    950: '#000000',
  },
}
SCSS
$custom: #2f1272;
$custom-light: #71559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1272",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 258.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30003,
    "c": 0.14873,
    "h": 287.3
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2F1272
secondary
#86A937
accent
#EF38B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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