#2F1853#2F1853

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

Color values

HEX#2F1853
RGBrgb(47, 24, 83)
HSLhsl(263, 55%, 21%)
HSVhsv(263, 71%, 33%)
CMYKcmyk(43.4%, 71.1%, 0%, 67.5%)
CIE-LABlab(14.86, 26.06, -31.89)
CIE-LCHlch(14.86, 41.18, 309.26°)
OKLaboklab(27.73% 0.0466 -0.0909)
OKLCHoklch(27.73% 0.102 297.2)
XYZxyz(3.0599, 1.8821, 8.3840)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1853 #3C5318
analogous
#181E53 #2F1853 #4C1853
triadic
#2F1853 #532F18 #18532F
tetradic
#2F1853 #53181E #3C5318 #18534C
square
#2F1853 #53181E #3C5318 #18534C
split-complementary
#2F1853 #534C18 #1E5318
monochromatic
#0D0718 #140A24 #2F1853 #4A2682 #6533B2

Accessibility & contrast

On white

15.26
#2F1853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1853 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1853
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1853#FFFFFF#000000##FFFFFF
##2F18531.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#262633
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1853;
/* rgb */ color: rgb(47, 24, 83);
/* oklch */ color: oklch(27.7% 0.102 297.2);
Tailwind
colors: {
  custom: {
    50: '#6b5684',
    500: '#2f1853',
    950: '#000000',
  },
}
SCSS
$custom: #2f1853;
$custom-light: #6b5684;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1853",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 83
  },
  "hsl": {
    "h": 263.39,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27732,
    "c": 0.10219,
    "h": 297.2
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#2F1853
secondary
#6C8A3D
accent
#DE49A4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1853

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

Preview Lab → · Contrast checker → · Palette generator →

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