#2F1654#2F1654

#2F1654 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.107 H 297.4°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2F1654
RGBrgb(47, 22, 84)
HSLhsl(264, 58%, 21%)
HSVhsv(264, 74%, 33%)
CMYKcmyk(44%, 73.8%, 0%, 67.1%)
CIE-LABlab(14.50, 27.57, -33.14)
CIE-LCHlch(14.50, 43.11, 309.76°)
OKLaboklab(27.51% 0.049 -0.0946)
OKLCHoklch(27.51% 0.107 297.4)
XYZxyz(3.0590, 1.8182, 8.5756)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1654 #3B5416
analogous
#161C54 #2F1654 #4E1654
triadic
#2F1654 #542F16 #16542F
tetradic
#2F1654 #54161C #3B5416 #16544E
square
#2F1654 #54161C #3B5416 #16544E
split-complementary
#2F1654 #544E16 #1C5416
monochromatic
#0E0618 #140924 #2F1654 #4A2384 #652FB5

Accessibility & contrast

On white

15.40
#2F1654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1654
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1654#FFFFFF#000000##FFFFFF
##2F16541.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.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: #2f1654;
/* rgb */ color: rgb(47, 22, 84);
/* oklch */ color: oklch(27.5% 0.107 297.4);
Tailwind
colors: {
  custom: {
    50: '#6b5585',
    500: '#2f1654',
    950: '#000000',
  },
}
SCSS
$custom: #2f1654;
$custom-light: #6b5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1654",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 264.194,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27505,
    "c": 0.10652,
    "h": 297.4
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#2F1654
secondary
#6B8B3A
accent
#E246A3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1654

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

Preview Lab → · Contrast checker → · Palette generator →

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