#2F0F53#2F0F53

#2F0F53 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.115 H 299.8°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2F0F53
RGBrgb(47, 15, 83)
HSLhsl(268, 69%, 19%)
HSVhsv(268, 82%, 33%)
CMYKcmyk(43.4%, 81.9%, 0%, 67.5%)
CIE-LABlab(13.05, 31.10, -34.83)
CIE-LCHlch(13.05, 46.69, 311.77°)
OKLaboklab(26.45% 0.057 -0.0995)
OKLCHoklch(26.45% 0.115 299.8)
XYZxyz(2.9041, 1.5705, 8.3321)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F53 #33530F
analogous
#0F1153 #2F0F53 #510F53
triadic
#2F0F53 #532F0F #0F532F
tetradic
#2F0F53 #530F11 #33530F #0F5351
square
#2F0F53 #530F11 #33530F #0F5351
split-complementary
#2F0F53 #53510F #11530F
monochromatic
#0F051A #12061F #2F0F53 #4C1887 #6A22BB

Accessibility & contrast

On white

15.98
#2F0F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F0F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F53
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F53#FFFFFF#000000##FFFFFF
##2F0F531.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002155
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#272130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f0f53;
/* rgb */ color: rgb(47, 15, 83);
/* oklch */ color: oklch(26.4% 0.115 299.8);
Tailwind
colors: {
  custom: {
    50: '#6c5184',
    500: '#2f0f53',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f53;
$custom-light: #6c5184;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f53",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 268.235,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26445,
    "c": 0.11468,
    "h": 299.8
  },
  "luminance": 0.01571
}

Semantic roles & 50–950 ramp

primary
#2F0F53
secondary
#628D31
accent
#EC3C99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F0F53

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

Preview Lab → · Contrast checker → · Palette generator →

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