#2F1570#2F1570

#2F1570 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.143 H 287.4°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1570
RGBrgb(47, 21, 112)
HSLhsl(257, 68%, 26%)
HSVhsv(257, 81%, 44%)
CMYKcmyk(58%, 81.2%, 0%, 56.1%)
CIE-LABlab(17.04, 36.64, -47.56)
CIE-LCHlch(17.04, 60.04, 307.61°)
OKLaboklab(30.13% 0.0428 -0.1369)
OKLCHoklch(30.13% 0.143 287.4)
XYZxyz(4.3642, 2.3103, 15.5421)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1570 #567015
analogous
#152870 #2F1570 #5C1570
triadic
#2F1570 #702F15 #15702F
tetradic
#2F1570 #701528 #567015 #15705C
square
#2F1570 #701528 #567015 #15705C
split-complementary
#2F1570 #705C15 #287015
monochromatic
#0B051A #190B3C #2F1570 #451FA4 #5A29D7

Accessibility & contrast

On white

14.36
#2F1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1570
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1570#FFFFFF#000000##FFFFFF
##2F15701.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#122F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1570;
/* rgb */ color: rgb(47, 21, 112);
/* oklch */ color: oklch(30.1% 0.143 287.4);
Tailwind
colors: {
  custom: {
    50: '#70569a',
    500: '#2f1570',
    950: '#000000',
  },
}
SCSS
$custom: #2f1570;
$custom-light: #70569a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1570",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 257.143,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30134,
    "c": 0.14342,
    "h": 287.4
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#2F1570
secondary
#87A63B
accent
#EB3DB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1570

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

Preview Lab → · Contrast checker → · Palette generator →

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