#2F1358#2F1358

#2F1358 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.116 H 296.4°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2F1358
RGBrgb(47, 19, 88)
HSLhsl(264, 64%, 21%)
HSVhsv(264, 78%, 35%)
CMYKcmyk(46.6%, 78.4%, 0%, 65.5%)
CIE-LABlab(14.26, 30.46, -36.25)
CIE-LCHlch(14.26, 47.35, 310.04°)
OKLaboklab(27.44% 0.0515 -0.1037)
OKLCHoklch(27.44% 0.116 296.4)
XYZxyz(3.1661, 1.7746, 9.4063)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1358 #3C5813
analogous
#131958 #2F1358 #511358
triadic
#2F1358 #582F13 #13582F
tetradic
#2F1358 #581319 #3C5813 #135851
square
#2F1358 #581319 #3C5813 #135851
split-complementary
#2F1358 #585113 #195813
monochromatic
#0D0519 #140826 #2F1358 #4A1E8A #6529BD

Accessibility & contrast

On white

15.50
#2F1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1358
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1358#FFFFFF#000000##FFFFFF
##2F13581.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#242534
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1358;
/* rgb */ color: rgb(47, 19, 88);
/* oklch */ color: oklch(27.4% 0.116 296.4);
Tailwind
colors: {
  custom: {
    50: '#6c5488',
    500: '#2f1358',
    950: '#000000',
  },
}
SCSS
$custom: #2f1358;
$custom-light: #6c5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1358",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 264.348,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27443,
    "c": 0.11581,
    "h": 296.4
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#2F1358
secondary
#6C9037
accent
#E740A4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1358

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

Preview Lab → · Contrast checker → · Palette generator →

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