#2F1273#2F1273

#2F1273 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.150 H 287.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1273
RGBrgb(47, 18, 115)
HSLhsl(258, 73%, 26%)
HSVhsv(258, 84%, 45%)
CMYKcmyk(59.1%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.87, 38.98, -49.79)
CIE-LCHlch(16.87, 63.23, 308.06°)
OKLaboklab(30.11% 0.0439 -0.1434)
OKLCHoklch(30.11% 0.15 287)
XYZxyz(4.4822, 2.2745, 16.4192)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1273 #567312
analogous
#122573 #2F1273 #5F1273
triadic
#2F1273 #732F12 #12732F
tetradic
#2F1273 #731225 #567312 #12735F
square
#2F1273 #731225 #567312 #12735F
split-complementary
#2F1273 #735F12 #257312
monochromatic
#0B041A #190A3E #2F1273 #451AA8 #5A23DD

Accessibility & contrast

On white

14.43
#2F1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1273
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1273#FFFFFF#000000##FFFFFF
##2F12731.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#0E2F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1273;
/* rgb */ color: rgb(47, 18, 115);
/* oklch */ color: oklch(30.1% 0.150 287.0);
Tailwind
colors: {
  custom: {
    50: '#71559c',
    500: '#2f1273',
    950: '#000000',
  },
}
SCSS
$custom: #2f1273;
$custom-light: #71559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1273",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 257.938,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30112,
    "c": 0.14992,
    "h": 287
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#2F1273
secondary
#87AA37
accent
#F038B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1273

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

Preview Lab → · Contrast checker → · Palette generator →

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