#2F1240#2F1240

#2F1240 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.087 H 310.7°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1240
RGBrgb(47, 18, 64)
HSLhsl(278, 56%, 16%)
HSVhsv(278, 72%, 25%)
CMYKcmyk(26.6%, 71.9%, 0%, 74.9%)
CIE-LABlab(12.01, 24.20, -23.33)
CIE-LCHlch(12.01, 33.61, 316.04°)
OKLaboklab(25.19% 0.0566 -0.0658)
OKLCHoklch(25.19% 0.087 310.7)
XYZxyz(2.3138, 1.4072, 4.9992)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1240 #234012
analogous
#181240 #2F1240 #40123A
triadic
#2F1240 #402F12 #12402F
tetradic
#2F1240 #401812 #234012 #123A40
square
#2F1240 #401812 #234012 #123A40
split-complementary
#2F1240 #3A4012 #124018
monochromatic
#120718 #120718 #2F1240 #521F70 #752DA0

Accessibility & contrast

On white

16.39
#2F1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2F1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1240
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1240#FFFFFF#000000##FFFFFF
##2F12401.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#2D1B27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1240;
/* rgb */ color: rgb(47, 18, 64);
/* oklch */ color: oklch(25.2% 0.087 310.7);
Tailwind
colors: {
  custom: {
    50: '#695275',
    500: '#2f1240',
    950: '#000000',
  },
}
SCSS
$custom: #2f1240;
$custom-light: #695275;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1240",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 277.826,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25189,
    "c": 0.08674,
    "h": 310.7
  },
  "luminance": 0.01407
}

Semantic roles & 50–950 ramp

primary
#2F1240
secondary
#4E7935
accent
#DF4880
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1240

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

Preview Lab → · Contrast checker → · Palette generator →

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