#2F1753#2F1753

#2F1753 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.104 H 297.5°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2F1753
RGBrgb(47, 23, 83)
HSLhsl(264, 57%, 21%)
HSVhsv(264, 72%, 33%)
CMYKcmyk(43.4%, 72.3%, 0%, 67.5%)
CIE-LABlab(14.63, 26.67, -32.25)
CIE-LCHlch(14.63, 41.85, 309.59°)
OKLaboklab(27.57% 0.0479 -0.092)
OKLCHoklch(27.57% 0.104 297.5)
XYZxyz(3.0396, 1.8416, 8.3773)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1753 #3B5317
analogous
#171D53 #2F1753 #4D1753
triadic
#2F1753 #532F17 #17532F
tetradic
#2F1753 #53171D #3B5317 #17534D
square
#2F1753 #53171D #3B5317 #17534D
split-complementary
#2F1753 #534D17 #1D5317
monochromatic
#0E0718 #140A23 #2F1753 #4A2483 #6532B3

Accessibility & contrast

On white

15.35
#2F1753 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1753
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1753#FFFFFF#000000##FFFFFF
##2F17531.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#262532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1753;
/* rgb */ color: rgb(47, 23, 83);
/* oklch */ color: oklch(27.6% 0.104 297.5);
Tailwind
colors: {
  custom: {
    50: '#6b5684',
    500: '#2f1753',
    950: '#000000',
  },
}
SCSS
$custom: #2f1753;
$custom-light: #6b5684;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1753",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 83
  },
  "hsl": {
    "h": 264,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27571,
    "c": 0.10371,
    "h": 297.5
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#2F1753
secondary
#6B8A3C
accent
#E048A3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1753

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

Preview Lab → · Contrast checker → · Palette generator →

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