#2F1852#2F1852

#2F1852 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.101 H 297.6°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1852
RGBrgb(47, 24, 82)
HSLhsl(264, 55%, 21%)
HSVhsv(264, 71%, 32%)
CMYKcmyk(42.7%, 70.7%, 0%, 67.8%)
CIE-LABlab(14.77, 25.75, -31.34)
CIE-LCHlch(14.77, 40.57, 309.41°)
OKLaboklab(27.64% 0.0468 -0.0893)
OKLCHoklch(27.64% 0.101 297.6)
XYZxyz(3.0215, 1.8668, 8.1821)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1852 #3B5218
analogous
#181E52 #2F1852 #4C1852
triadic
#2F1852 #522F18 #18522F
tetradic
#2F1852 #52181E #3B5218 #18524C
square
#2F1852 #52181E #3B5218 #18524C
split-complementary
#2F1852 #524C18 #1E5218
monochromatic
#0E0718 #140A23 #2F1852 #4A2681 #6534B1

Accessibility & contrast

On white

15.29
#2F1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1852
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1852#FFFFFF#000000##FFFFFF
##2F18521.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#272532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1852;
/* rgb */ color: rgb(47, 24, 82);
/* oklch */ color: oklch(27.6% 0.101 297.6);
Tailwind
colors: {
  custom: {
    50: '#6b5683',
    500: '#2f1852',
    950: '#000000',
  },
}
SCSS
$custom: #2f1852;
$custom-light: #6b5683;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1852",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 263.793,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27645,
    "c": 0.10082,
    "h": 297.6
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#2F1852
secondary
#6B893D
accent
#DE4AA3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1852

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

Preview Lab → · Contrast checker → · Palette generator →

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