#2F1754#2F1754

#2F1754 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.105 H 297.0°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2F1754
RGBrgb(47, 23, 84)
HSLhsl(264, 57%, 21%)
HSVhsv(264, 73%, 33%)
CMYKcmyk(44%, 72.6%, 0%, 67.1%)
CIE-LABlab(14.72, 26.97, -32.79)
CIE-LCHlch(14.72, 42.45, 309.44°)
OKLaboklab(27.66% 0.0478 -0.0936)
OKLCHoklch(27.66% 0.105 297)
XYZxyz(3.0785, 1.8572, 8.5821)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1754 #3C5417
analogous
#171D54 #2F1754 #4D1754
triadic
#2F1754 #542F17 #17542F
tetradic
#2F1754 #54171D #3C5417 #17544D
square
#2F1754 #54171D #3C5417 #17544D
split-complementary
#2F1754 #544D17 #1D5417
monochromatic
#0D0718 #140A24 #2F1754 #4A2484 #6531B4

Accessibility & contrast

On white

15.31
#2F1754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1754
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1754#FFFFFF#000000##FFFFFF
##2F17541.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#262533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1754;
/* rgb */ color: rgb(47, 23, 84);
/* oklch */ color: oklch(27.7% 0.105 297.0);
Tailwind
colors: {
  custom: {
    50: '#6b5685',
    500: '#2f1754',
    950: '#000000',
  },
}
SCSS
$custom: #2f1754;
$custom-light: #6b5685;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1754",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 263.607,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2766,
    "c": 0.10505,
    "h": 297
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#2F1754
secondary
#6C8B3C
accent
#E048A4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1754

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

Preview Lab → · Contrast checker → · Palette generator →

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