#2F1440#2F1440

#2F1440 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.083 H 310.1°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2F1440
RGBrgb(47, 20, 64)
HSLhsl(277, 52%, 16%)
HSVhsv(277, 69%, 25%)
CMYKcmyk(26.6%, 68.8%, 0%, 74.9%)
CIE-LABlab(12.45, 23.00, -22.62)
CIE-LCHlch(12.45, 32.26, 315.47°)
OKLaboklab(25.51% 0.0536 -0.0637)
OKLCHoklch(25.51% 0.083 310.1)
XYZxyz(2.3477, 1.4749, 5.0105)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1440 #254014
analogous
#191440 #2F1440 #40143B
triadic
#2F1440 #402F14 #14402F
tetradic
#2F1440 #401914 #254014 #143B40
square
#2F1440 #401914 #254014 #143B40
split-complementary
#2F1440 #3B4014 #144019
monochromatic
#110717 #110717 #2F1440 #51236F #73319D

Accessibility & contrast

On white

16.22
#2F1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F1440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1440
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1440#FFFFFF#000000##FFFFFF
##2F14401.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#2D1C27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1440;
/* rgb */ color: rgb(47, 20, 64);
/* oklch */ color: oklch(25.5% 0.083 310.1);
Tailwind
colors: {
  custom: {
    50: '#695375',
    500: '#2f1440',
    950: '#000000',
  },
}
SCSS
$custom: #2f1440;
$custom-light: #695375;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1440",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 276.818,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2551,
    "c": 0.08324,
    "h": 310.1
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#2F1440
secondary
#517838
accent
#DC4C84
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1440

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

Preview Lab → · Contrast checker → · Palette generator →

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