#2F1244#2F1244

#2F1244 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.092 H 307.8°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1244
RGBrgb(47, 18, 68)
HSLhsl(275, 58%, 17%)
HSVhsv(275, 74%, 27%)
CMYKcmyk(30.9%, 73.5%, 0%, 73.3%)
CIE-LABlab(12.31, 25.29, -25.65)
CIE-LCHlch(12.31, 36.02, 314.59°)
OKLaboklab(25.51% 0.0563 -0.0726)
OKLCHoklch(25.51% 0.092 307.8)
XYZxyz(2.4318, 1.4543, 5.6203)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1244 #274412
analogous
#161244 #2F1244 #441240
triadic
#2F1244 #442F12 #12442F
tetradic
#2F1244 #441612 #274412 #124044
square
#2F1244 #441612 #274412 #124044
split-complementary
#2F1244 #404412 #124416
monochromatic
#110618 #110618 #2F1244 #501F74 #722CA5

Accessibility & contrast

On white

16.27
#2F1244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1244
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1244#FFFFFF#000000##FFFFFF
##2F12441.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#082043
Tritanopia (blue-blind)
#2C1C29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1244;
/* rgb */ color: rgb(47, 18, 68);
/* oklch */ color: oklch(25.5% 0.092 307.8);
Tailwind
colors: {
  custom: {
    50: '#6a5278',
    500: '#2f1244',
    950: '#000000',
  },
}
SCSS
$custom: #2f1244;
$custom-light: #6a5278;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1244",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 274.8,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25511,
    "c": 0.09183,
    "h": 307.8
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#2F1244
secondary
#537D35
accent
#E14688
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1244

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

Preview Lab → · Contrast checker → · Palette generator →

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