#2F1145#2F1145

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

Color values

HEX#2F1145
RGBrgb(47, 17, 69)
HSLhsl(275, 60%, 17%)
HSVhsv(275, 75%, 27%)
CMYKcmyk(31.9%, 75.4%, 0%, 72.9%)
CIE-LABlab(12.19, 26.13, -26.55)
CIE-LCHlch(12.19, 37.26, 314.54°)
OKLaboklab(25.45% 0.0575 -0.0752)
OKLCHoklch(25.45% 0.095 307.4)
XYZxyz(2.4467, 1.4349, 5.7771)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1145 #274511
analogous
#151145 #2F1145 #451141
triadic
#2F1145 #452F11 #11452F
tetradic
#2F1145 #451511 #274511 #114145
square
#2F1145 #451511 #274511 #114145
split-complementary
#2F1145 #414511 #114515
monochromatic
#110619 #110619 #2F1145 #501D76 #7229A7

Accessibility & contrast

On white

16.32
#2F1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1145
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1145#FFFFFF#000000##FFFFFF
##2F11451.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1145;
/* rgb */ color: rgb(47, 17, 69);
/* oklch */ color: oklch(25.4% 0.095 307.4);
Tailwind
colors: {
  custom: {
    50: '#6a5179',
    500: '#2f1145',
    950: '#000000',
  },
}
SCSS
$custom: #2f1145;
$custom-light: #6a5179;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1145",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 274.615,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25446,
    "c": 0.09469,
    "h": 307.4
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#2F1145
secondary
#537F33
accent
#E44488
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1145

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

Preview Lab → · Contrast checker → · Palette generator →

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