#2F1275#2F1275

#2F1275 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.152 H 286.5°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1275
RGBrgb(47, 18, 117)
HSLhsl(258, 73%, 26%)
HSVhsv(258, 85%, 46%)
CMYKcmyk(59.8%, 84.6%, 0%, 54.1%)
CIE-LABlab(17.09, 39.57, -50.71)
CIE-LCHlch(17.09, 64.32, 307.96°)
OKLaboklab(30.33% 0.0431 -0.1461)
OKLCHoklch(30.33% 0.152 286.5)
XYZxyz(4.5985, 2.3210, 17.0319)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1275 #587512
analogous
#122775 #2F1275 #611275
triadic
#2F1275 #752F12 #12752F
tetradic
#2F1275 #751227 #587512 #127561
square
#2F1275 #751227 #587512 #127561
split-complementary
#2F1275 #756112 #277512
monochromatic
#0B041B #1A0A40 #2F1275 #441AAA #5A24DD

Accessibility & contrast

On white

14.34
#2F1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1275
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1275#FFFFFF#000000##FFFFFF
##2F12751.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#0B3044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1275;
/* rgb */ color: rgb(47, 18, 117);
/* oklch */ color: oklch(30.3% 0.152 286.5);
Tailwind
colors: {
  custom: {
    50: '#71559e',
    500: '#2f1275',
    950: '#000000',
  },
}
SCSS
$custom: #2f1275;
$custom-light: #71559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1275",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 257.576,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30332,
    "c": 0.15229,
    "h": 286.5
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#2F1275
secondary
#8AAC37
accent
#F038BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2F1275

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

Preview Lab → · Contrast checker → · Palette generator →

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