#2F2159#2F2159

#2F2159 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.096 H 290.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2F2159
RGBrgb(47, 33, 89)
HSLhsl(255, 46%, 24%)
HSVhsv(255, 63%, 35%)
CMYKcmyk(47.2%, 62.9%, 0%, 65.1%)
CIE-LABlab(17.52, 22.15, -31.62)
CIE-LCHlch(17.52, 38.61, 305.02°)
OKLaboklab(29.83% 0.0344 -0.0901)
OKLCHoklch(29.83% 0.096 290.9)
XYZxyz(3.5188, 2.4132, 9.7296)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2159 #4B5921
analogous
#212F59 #2F2159 #4B2159
triadic
#2F2159 #592F21 #21592F
tetradic
#2F2159 #59212F #4B5921 #21594B
square
#2F2159 #59212F #4B5921 #21594B
split-complementary
#2F2159 #594B21 #2F5921
monochromatic
#0C0816 #17102C #2F2159 #473286 #5E42B2

Accessibility & contrast

On white

14.16
#2F2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2159
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2159#FFFFFF#000000##FFFFFF
##2F21591.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#022A58
Tritanopia (blue-blind)
#232D39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f2159;
/* rgb */ color: rgb(47, 33, 89);
/* oklch */ color: oklch(29.8% 0.096 290.9);
Tailwind
colors: {
  custom: {
    50: '#6b5d88',
    500: '#2f2159',
    950: '#000000',
  },
}
SCSS
$custom: #2f2159;
$custom-light: #6b5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2159",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 255,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29827,
    "c": 0.09649,
    "h": 290.9
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#2F2159
secondary
#7C8D49
accent
#D652B5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2159

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

Preview Lab → · Contrast checker → · Palette generator →

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