#2F1370#2F1370

#2F1370 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.145 H 287.7°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2F1370
RGBrgb(47, 19, 112)
HSLhsl(258, 71%, 26%)
HSVhsv(258, 83%, 44%)
CMYKcmyk(58%, 83%, 0%, 56.1%)
CIE-LABlab(16.70, 37.62, -48.12)
CIE-LCHlch(16.70, 61.08, 308.02°)
OKLaboklab(29.9% 0.0443 -0.1385)
OKLCHoklch(29.9% 0.145 287.7)
XYZxyz(4.3289, 2.2397, 15.5303)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1370 #547013
analogous
#132570 #2F1370 #5D1370
triadic
#2F1370 #702F13 #13702F
tetradic
#2F1370 #701325 #547013 #13705D
square
#2F1370 #701325 #547013 #13705D
split-complementary
#2F1370 #705D13 #257013
monochromatic
#0B041A #190A3C #2F1370 #451CA4 #5B25D9

Accessibility & contrast

On white

14.50
#2F1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1370
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1370#FFFFFF#000000##FFFFFF
##2F13701.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#122E42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1370;
/* rgb */ color: rgb(47, 19, 112);
/* oklch */ color: oklch(29.9% 0.145 287.7);
Tailwind
colors: {
  custom: {
    50: '#70559a',
    500: '#2f1370',
    950: '#000000',
  },
}
SCSS
$custom: #2f1370;
$custom-light: #70559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1370",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 258.065,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.1454,
    "h": 287.7
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#2F1370
secondary
#85A738
accent
#EE3AB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1370

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

Preview Lab → · Contrast checker → · Palette generator →

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