#2F2154#2F2154

#2F2154 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.089 H 292.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2F2154
RGBrgb(47, 33, 84)
HSLhsl(256, 44%, 23%)
HSVhsv(256, 61%, 33%)
CMYKcmyk(44%, 60.7%, 0%, 67.1%)
CIE-LABlab(17.14, 20.53, -28.87)
CIE-LCHlch(17.14, 35.43, 305.41°)
OKLaboklab(29.43% 0.0344 -0.0821)
OKLCHoklch(29.43% 0.089 292.8)
XYZxyz(3.3159, 2.3321, 8.6612)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2154 #465421
analogous
#212C54 #2F2154 #482154
triadic
#2F2154 #542F21 #21542F
tetradic
#2F2154 #54212C #465421 #215448
square
#2F2154 #54212C #465421 #215448
split-complementary
#2F2154 #544821 #2C5421
monochromatic
#0C0916 #161028 #2F2154 #483280 #6044AC

Accessibility & contrast

On white

14.32
#2F2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2154
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2154#FFFFFF#000000##FFFFFF
##2F21541.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072B56
Deuteranopia (green-blind)
#0B2953
Tritanopia (blue-blind)
#252C37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2154;
/* rgb */ color: rgb(47, 33, 84);
/* oklch */ color: oklch(29.4% 0.089 292.8);
Tailwind
colors: {
  custom: {
    50: '#6a5c84',
    500: '#2f2154',
    950: '#000000',
  },
}
SCSS
$custom: #2f2154;
$custom-light: #6a5c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2154",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 256.471,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29425,
    "c": 0.089,
    "h": 292.8
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#2F2154
secondary
#778849
accent
#D354B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2154

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

Preview Lab → · Contrast checker → · Palette generator →

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