#2F1070#2F1070

#2F1070 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.6% C 0.148 H 288.2°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2F1070
RGBrgb(47, 16, 112)
HSLhsl(259, 75%, 25%)
HSVhsv(259, 86%, 44%)
CMYKcmyk(58%, 85.7%, 0%, 56.1%)
CIE-LABlab(16.23, 38.99, -48.90)
CIE-LCHlch(16.23, 62.54, 308.57°)
OKLaboklab(29.57% 0.0463 -0.1407)
OKLCHoklch(29.57% 0.148 288.2)
XYZxyz(4.2813, 2.1445, 15.5144)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1070 #517010
analogous
#102170 #2F1070 #5F1070
triadic
#2F1070 #702F10 #10702F
tetradic
#2F1070 #701021 #517010 #10705F
square
#2F1070 #701021 #517010 #10705F
split-complementary
#2F1070 #705F10 #217010
monochromatic
#0B041B #19083A #2F1070 #4518A6 #5C1FDB

Accessibility & contrast

On white

14.70
#2F1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1070
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1070#FFFFFF#000000##FFFFFF
##2F10701.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#132D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1070;
/* rgb */ color: rgb(47, 16, 112);
/* oklch */ color: oklch(29.6% 0.148 288.2);
Tailwind
colors: {
  custom: {
    50: '#71549a',
    500: '#2f1070',
    950: '#000000',
  },
}
SCSS
$custom: #2f1070;
$custom-light: #71549a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1070",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 259.375,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29572,
    "c": 0.14814,
    "h": 288.2
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#2F1070
secondary
#82A834
accent
#F236B5
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1070

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

Preview Lab → · Contrast checker → · Palette generator →

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