#2F2152#2F2152

#2F2152 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.086 H 293.6°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2F2152
RGBrgb(47, 33, 82)
HSLhsl(257, 43%, 23%)
HSVhsv(257, 60%, 32%)
CMYKcmyk(42.7%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.99, 19.88, -27.76)
CIE-LCHlch(16.99, 34.14, 305.61°)
OKLaboklab(29.27% 0.0344 -0.0788)
OKLCHoklch(29.27% 0.086 293.6)
XYZxyz(3.2387, 2.3012, 8.2545)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2152 #445221
analogous
#212B52 #2F2152 #482152
triadic
#2F2152 #522F21 #21522F
tetradic
#2F2152 #52212B #445221 #215248
square
#2F2152 #52212B #445221 #215248
split-complementary
#2F2152 #524821 #2B5221
monochromatic
#0D0916 #160F26 #2F2152 #48337E #6144A9

Accessibility & contrast

On white

14.38
#2F2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2152
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2152#FFFFFF#000000##FFFFFF
##2F21521.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2A54
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#262B36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2152;
/* rgb */ color: rgb(47, 33, 82);
/* oklch */ color: oklch(29.3% 0.086 293.6);
Tailwind
colors: {
  custom: {
    50: '#6a5c83',
    500: '#2f2152',
    950: '#000000',
  },
}
SCSS
$custom: #2f2152;
$custom-light: #6a5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2152",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 257.143,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29269,
    "c": 0.08596,
    "h": 293.6
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#2F2152
secondary
#758649
accent
#D255AF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #2F2152

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

Preview Lab → · Contrast checker → · Palette generator →

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