#2F1844#2F1844

#2F1844 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.081 H 305.7°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2F1844
RGBrgb(47, 24, 68)
HSLhsl(271, 48%, 18%)
HSVhsv(271, 65%, 27%)
CMYKcmyk(30.9%, 64.7%, 0%, 73.3%)
CIE-LABlab(13.68, 21.60, -23.46)
CIE-LCHlch(13.68, 31.88, 312.64°)
OKLaboklab(26.5% 0.0475 -0.0662)
OKLCHoklch(26.5% 0.081 305.7)
XYZxyz(2.5421, 1.6750, 5.6571)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1844 #2D4418
analogous
#191844 #2F1844 #441843
triadic
#2F1844 #442F18 #18442F
tetradic
#2F1844 #441918 #2D4418 #184344
square
#2F1844 #441918 #2D4418 #184344
split-complementary
#2F1844 #434418 #184419
monochromatic
#100817 #100817 #2F1844 #4E2871 #6E389E

Accessibility & contrast

On white

15.73
#2F1844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1844
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1844#FFFFFF#000000##FFFFFF
##2F18441.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072245
Deuteranopia (green-blind)
#102343
Tritanopia (blue-blind)
#2B202B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1844;
/* rgb */ color: rgb(47, 24, 68);
/* oklch */ color: oklch(26.5% 0.081 305.7);
Tailwind
colors: {
  custom: {
    50: '#695678',
    500: '#2f1844',
    950: '#000000',
  },
}
SCSS
$custom: #2f1844;
$custom-light: #695678;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1844",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 68
  },
  "hsl": {
    "h": 271.364,
    "s": 47.826,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26503,
    "c": 0.08145,
    "h": 305.7
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#2F1844
secondary
#5B7B3D
accent
#D75091
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1844

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

Preview Lab → · Contrast checker → · Palette generator →

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