#2F1870#2F1870

#2F1870 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.140 H 286.8°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2F1870
RGBrgb(47, 24, 112)
HSLhsl(256, 65%, 27%)
HSVhsv(256, 79%, 44%)
CMYKcmyk(58%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.59, 35.07, -46.66)
CIE-LCHlch(17.59, 58.37, 306.93°)
OKLaboklab(30.52% 0.0404 -0.1343)
OKLCHoklch(30.52% 0.14 286.8)
XYZxyz(4.4227, 2.4272, 15.5615)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1870 #597018
analogous
#182D70 #2F1870 #5B1870
triadic
#2F1870 #702F18 #18702F
tetradic
#2F1870 #70182D #597018 #18705B
square
#2F1870 #70182D #597018 #18705B
split-complementary
#2F1870 #705B18 #2D7018
monochromatic
#0B0519 #1A0D3E #2F1870 #4423A2 #5A30D3

Accessibility & contrast

On white

14.14
#2F1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1870
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1870#FFFFFF#000000##FFFFFF
##2F18701.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#123143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1870;
/* rgb */ color: rgb(47, 24, 112);
/* oklch */ color: oklch(30.5% 0.140 286.8);
Tailwind
colors: {
  custom: {
    50: '#70589a',
    500: '#2f1870',
    950: '#000000',
  },
}
SCSS
$custom: #2f1870;
$custom-light: #70589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1870",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 255.682,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30518,
    "c": 0.14023,
    "h": 286.8
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#2F1870
secondary
#8BA53E
accent
#E840BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1870

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

Preview Lab → · Contrast checker → · Palette generator →

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