#2F1248#2F1248

#2F1248 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.097 H 305.2°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#2F1248
RGBrgb(47, 18, 72)
HSLhsl(272, 60%, 18%)
HSVhsv(272, 75%, 28%)
CMYKcmyk(34.7%, 75%, 0%, 71.8%)
CIE-LABlab(12.64, 26.40, -27.92)
CIE-LCHlch(12.64, 38.42, 313.40°)
OKLaboklab(25.85% 0.0558 -0.0792)
OKLCHoklch(25.85% 0.097 305.2)
XYZxyz(2.5580, 1.5048, 6.2853)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1248 #2B4812
analogous
#141248 #2F1248 #481246
triadic
#2F1248 #482F12 #12482F
tetradic
#2F1248 #481412 #2B4812 #124648
square
#2F1248 #481412 #2B4812 #124648
split-complementary
#2F1248 #464812 #124814
monochromatic
#100618 #100618 #2F1248 #4F1E79 #6F2AAA

Accessibility & contrast

On white

16.14
#2F1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1248
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1248#FFFFFF#000000##FFFFFF
##2F12481.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#2A1E2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1248;
/* rgb */ color: rgb(47, 18, 72);
/* oklch */ color: oklch(25.8% 0.097 305.2);
Tailwind
colors: {
  custom: {
    50: '#6a527b',
    500: '#2f1248',
    950: '#000000',
  },
}
SCSS
$custom: #2f1248;
$custom-light: #6a527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1248",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 272.222,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25847,
    "c": 0.09692,
    "h": 305.2
  },
  "luminance": 0.01505
}

Semantic roles & 50–950 ramp

primary
#2F1248
secondary
#588135
accent
#E3458E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1248

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

Preview Lab → · Contrast checker → · Palette generator →

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