#2F1944#2F1944

#2F1944 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.080 H 305.3°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2F1944
RGBrgb(47, 25, 68)
HSLhsl(271, 46%, 18%)
HSVhsv(271, 63%, 27%)
CMYKcmyk(30.9%, 63.2%, 0%, 73.3%)
CIE-LABlab(13.93, 20.95, -23.06)
CIE-LCHlch(13.93, 31.16, 312.25°)
OKLaboklab(26.68% 0.046 -0.065)
OKLCHoklch(26.68% 0.08 305.3)
XYZxyz(2.5631, 1.7170, 5.6641)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1944 #2E4419
analogous
#191944 #2F1944 #441943
triadic
#2F1944 #442F19 #19442F
tetradic
#2F1944 #441919 #2E4419 #194344
square
#2F1944 #441919 #2E4419 #194344
split-complementary
#2F1944 #434419 #194419
monochromatic
#0F0816 #100917 #2F1944 #4E2971 #6D3A9D

Accessibility & contrast

On white

15.63
#2F1944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1944
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1944#FFFFFF#000000##FFFFFF
##2F19441.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092345
Deuteranopia (green-blind)
#112443
Tritanopia (blue-blind)
#2B212B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1944;
/* rgb */ color: rgb(47, 25, 68);
/* oklch */ color: oklch(26.7% 0.080 305.3);
Tailwind
colors: {
  custom: {
    50: '#695678',
    500: '#2f1944',
    950: '#000000',
  },
}
SCSS
$custom: #2f1944;
$custom-light: #695678;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1944",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 68
  },
  "hsl": {
    "h": 270.698,
    "s": 46.237,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26683,
    "c": 0.07961,
    "h": 305.3
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#2F1944
secondary
#5C7A3E
accent
#D65292
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1944

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

Preview Lab → · Contrast checker → · Palette generator →

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