#2F0D58#2F0D58

#2F0D58 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.123 H 297.8°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2F0D58
RGBrgb(47, 13, 88)
HSLhsl(267, 74%, 20%)
HSVhsv(267, 85%, 35%)
CMYKcmyk(46.6%, 85.2%, 0%, 65.5%)
CIE-LABlab(13.21, 33.45, -37.96)
CIE-LCHlch(13.21, 50.60, 311.39°)
OKLaboklab(26.71% 0.0573 -0.1087)
OKLCHoklch(26.71% 0.123 297.8)
XYZxyz(3.0772, 1.5967, 9.3767)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0D58 #36580D
analogous
#0D1158 #2F0D58 #550D58
triadic
#2F0D58 #582F0D #0D582F
tetradic
#2F0D58 #580D11 #36580D #0D5855
square
#2F0D58 #580D11 #36580D #0D5855
split-complementary
#2F0D58 #58550D #11580D
monochromatic
#0E041B #130523 #2F0D58 #4B158D #681DC3

Accessibility & contrast

On white

15.92
#2F0D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F0D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0D58
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0D58#FFFFFF#000000##FFFFFF
##2F0D581.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#242233
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0d58;
/* rgb */ color: rgb(47, 13, 88);
/* oklch */ color: oklch(26.7% 0.123 297.8);
Tailwind
colors: {
  custom: {
    50: '#6d5088',
    500: '#2f0d58',
    950: '#000000',
  },
}
SCSS
$custom: #2f0d58;
$custom-light: #6d5088;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0d58",
  "rgb": {
    "r": 47,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 267.2,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26709,
    "c": 0.12288,
    "h": 297.8
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#2F0D58
secondary
#65932E
accent
#F1379D
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0D58

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

Preview Lab → · Contrast checker → · Palette generator →

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