#2F1345#2F1345

#2F1345 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.091 H 306.8°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2F1345
RGBrgb(47, 19, 69)
HSLhsl(274, 57%, 17%)
HSVhsv(274, 72%, 27%)
CMYKcmyk(31.9%, 72.5%, 0%, 72.9%)
CIE-LABlab(12.61, 24.98, -25.88)
CIE-LCHlch(12.61, 35.97, 313.98°)
OKLaboklab(25.75% 0.0548 -0.0732)
OKLCHoklch(25.75% 0.091 306.8)
XYZxyz(2.4791, 1.4998, 5.7880)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1345 #294513
analogous
#161345 #2F1345 #451342
triadic
#2F1345 #452F13 #13452F
tetradic
#2F1345 #451613 #294513 #134245
square
#2F1345 #451613 #294513 #134245
split-complementary
#2F1345 #424513 #134516
monochromatic
#100718 #100718 #2F1345 #502075 #702DA5

Accessibility & contrast

On white

16.15
#2F1345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1345
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1345#FFFFFF#000000##FFFFFF
##2F13451.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#082144
Tritanopia (blue-blind)
#2B1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1345;
/* rgb */ color: rgb(47, 19, 69);
/* oklch */ color: oklch(25.7% 0.091 306.8);
Tailwind
colors: {
  custom: {
    50: '#6a5379',
    500: '#2f1345',
    950: '#000000',
  },
}
SCSS
$custom: #2f1345;
$custom-light: #6a5379;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1345",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 273.6,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25747,
    "c": 0.09148,
    "h": 306.8
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#2F1345
secondary
#567E36
accent
#E0488B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1345

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

Preview Lab → · Contrast checker → · Palette generator →

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