#2F1243#2F1243

#2F1243 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.091 H 308.5°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1243
RGBrgb(47, 18, 67)
HSLhsl(276, 58%, 17%)
HSVhsv(276, 73%, 26%)
CMYKcmyk(29.9%, 73.1%, 0%, 73.7%)
CIE-LABlab(12.24, 25.01, -25.07)
CIE-LCHlch(12.24, 35.42, 314.93°)
OKLaboklab(25.43% 0.0564 -0.0709)
OKLCHoklch(25.43% 0.091 308.5)
XYZxyz(2.4015, 1.4422, 5.4610)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1243 #264312
analogous
#171243 #2F1243 #43123F
triadic
#2F1243 #432F12 #12432F
tetradic
#2F1243 #431712 #264312 #123F43
square
#2F1243 #431712 #264312 #123F43
split-complementary
#2F1243 #3F4312 #124317
monochromatic
#110618 #110618 #2F1243 #511F73 #732CA3

Accessibility & contrast

On white

16.30
#2F1243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1243 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1243
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1243#FFFFFF#000000##FFFFFF
##2F12431.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#092042
Tritanopia (blue-blind)
#2C1C28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1243;
/* rgb */ color: rgb(47, 18, 67);
/* oklch */ color: oklch(25.4% 0.091 308.5);
Tailwind
colors: {
  custom: {
    50: '#6a5277',
    500: '#2f1243',
    950: '#000000',
  },
}
SCSS
$custom: #2f1243;
$custom-light: #6a5277;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1243",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 67
  },
  "hsl": {
    "h": 275.51,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25429,
    "c": 0.09055,
    "h": 308.5
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#2F1243
secondary
#527C35
accent
#E14786
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2F1243

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

Preview Lab → · Contrast checker → · Palette generator →

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