#2F1245#2F1245

#2F1245 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.093 H 307.1°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2F1245
RGBrgb(47, 18, 69)
HSLhsl(274, 59%, 17%)
HSVhsv(274, 74%, 27%)
CMYKcmyk(31.9%, 73.9%, 0%, 72.9%)
CIE-LABlab(12.39, 25.56, -26.22)
CIE-LCHlch(12.39, 36.62, 314.27°)
OKLaboklab(25.59% 0.0562 -0.0742)
OKLCHoklch(25.59% 0.093 307.1)
XYZxyz(2.4625, 1.4667, 5.7824)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1245 #284512
analogous
#161245 #2F1245 #451242
triadic
#2F1245 #452F12 #12452F
tetradic
#2F1245 #451612 #284512 #124245
square
#2F1245 #451612 #284512 #124245
split-complementary
#2F1245 #424512 #124516
monochromatic
#110618 #110618 #2F1245 #501F76 #712BA6

Accessibility & contrast

On white

16.24
#2F1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1245
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1245#FFFFFF#000000##FFFFFF
##2F12451.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#072144
Tritanopia (blue-blind)
#2B1D29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1245;
/* rgb */ color: rgb(47, 18, 69);
/* oklch */ color: oklch(25.6% 0.093 307.1);
Tailwind
colors: {
  custom: {
    50: '#6a5279',
    500: '#2f1245',
    950: '#000000',
  },
}
SCSS
$custom: #2f1245;
$custom-light: #6a5279;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1245",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 274.118,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25594,
    "c": 0.09311,
    "h": 307.1
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#2F1245
secondary
#547E35
accent
#E24689
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1245

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

Preview Lab → · Contrast checker → · Palette generator →

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