#2F1450#2F1450

#2F1450 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.104 H 300.0°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1450
RGBrgb(47, 20, 80)
HSLhsl(267, 60%, 20%)
HSVhsv(267, 75%, 31%)
CMYKcmyk(41.3%, 75%, 0%, 68.6%)
CIE-LABlab(13.73, 27.55, -31.67)
CIE-LCHlch(13.73, 41.97, 311.02°)
OKLaboklab(26.84% 0.0521 -0.0902)
OKLCHoklch(26.84% 0.104 300)
XYZxyz(2.8701, 1.6838, 7.7617)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1450 #355014
analogous
#141750 #2F1450 #4D1450
triadic
#2F1450 #502F14 #14502F
tetradic
#2F1450 #501417 #355014 #14504D
square
#2F1450 #501417 #355014 #14504D
split-complementary
#2F1450 #504D14 #175014
monochromatic
#0E0618 #12081F #2F1450 #4C2081 #692CB2

Accessibility & contrast

On white

15.71
#2F1450 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1450 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1450
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1450#FFFFFF#000000##FFFFFF
##2F14501.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#282230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1450;
/* rgb */ color: rgb(47, 20, 80);
/* oklch */ color: oklch(26.8% 0.104 300.0);
Tailwind
colors: {
  custom: {
    50: '#6b5482',
    500: '#2f1450',
    950: '#000000',
  },
}
SCSS
$custom: #2f1450;
$custom-light: #6b5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1450",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 80
  },
  "hsl": {
    "h": 267,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26844,
    "c": 0.1042,
    "h": 300
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2F1450
secondary
#648838
accent
#E3459C
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1450

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

Preview Lab → · Contrast checker → · Palette generator →

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