#2F1375#2F1375

#2F1375 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.151 H 286.3°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#2F1375
RGBrgb(47, 19, 117)
HSLhsl(257, 72%, 27%)
HSVhsv(257, 84%, 46%)
CMYKcmyk(59.8%, 83.8%, 0%, 54.1%)
CIE-LABlab(17.25, 39.11, -50.45)
CIE-LCHlch(17.25, 63.84, 307.78°)
OKLaboklab(30.44% 0.0425 -0.1453)
OKLCHoklch(30.44% 0.151 286.3)
XYZxyz(4.6151, 2.3542, 17.0374)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1375 #597513
analogous
#132875 #2F1375 #601375
triadic
#2F1375 #752F13 #13752F
tetradic
#2F1375 #751328 #597513 #137560
square
#2F1375 #751328 #597513 #137560
split-complementary
#2F1375 #756013 #287513
monochromatic
#0B041A #1A0A40 #2F1375 #441CAA #5A27DC

Accessibility & contrast

On white

14.28
#2F1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1375
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1375#FFFFFF#000000##FFFFFF
##2F13751.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#0B3045
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1375;
/* rgb */ color: rgb(47, 19, 117);
/* oklch */ color: oklch(30.4% 0.151 286.3);
Tailwind
colors: {
  custom: {
    50: '#71559e',
    500: '#2f1375',
    950: '#000000',
  },
}
SCSS
$custom: #2f1375;
$custom-light: #71559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1375",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 257.143,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30441,
    "c": 0.1514,
    "h": 286.3
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#2F1375
secondary
#8BAB38
accent
#EF39BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2F1375

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

Preview Lab → · Contrast checker → · Palette generator →

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