#2F1357#2F1357

#2F1357 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.115 H 296.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2F1357
RGBrgb(47, 19, 87)
HSLhsl(265, 64%, 21%)
HSVhsv(265, 78%, 34%)
CMYKcmyk(46%, 78.2%, 0%, 65.9%)
CIE-LABlab(14.16, 30.17, -35.72)
CIE-LCHlch(14.16, 46.76, 310.18°)
OKLaboklab(27.35% 0.0518 -0.1022)
OKLCHoklch(27.35% 0.115 296.9)
XYZxyz(3.1250, 1.7581, 9.1897)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1357 #3B5713
analogous
#131957 #2F1357 #511357
triadic
#2F1357 #572F13 #13572F
tetradic
#2F1357 #571319 #3B5713 #135751
square
#2F1357 #571319 #3B5713 #135751
split-complementary
#2F1357 #575113 #195713
monochromatic
#0E0519 #140825 #2F1357 #4A1E89 #6529BB

Accessibility & contrast

On white

15.54
#2F1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1357
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1357#FFFFFF#000000##FFFFFF
##2F13571.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#252433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1357;
/* rgb */ color: rgb(47, 19, 87);
/* oklch */ color: oklch(27.3% 0.115 296.9);
Tailwind
colors: {
  custom: {
    50: '#6c5387',
    500: '#2f1357',
    950: '#000000',
  },
}
SCSS
$custom: #2f1357;
$custom-light: #6c5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1357",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 264.706,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27348,
    "c": 0.11456,
    "h": 296.9
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#2F1357
secondary
#6B8F36
accent
#E741A3
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1357

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

Preview Lab → · Contrast checker → · Palette generator →

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