#2F1E64#2F1E64

#2F1E64 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.117 H 288.6°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1E64
RGBrgb(47, 30, 100)
HSLhsl(255, 54%, 25%)
HSVhsv(255, 70%, 39%)
CMYKcmyk(53%, 70%, 0%, 60.8%)
CIE-LABlab(17.70, 27.71, -38.62)
CIE-LCHlch(17.70, 47.54, 305.66°)
OKLaboklab(30.25% 0.0372 -0.1107)
OKLCHoklch(30.25% 0.117 288.6)
XYZxyz(3.9361, 2.4528, 12.3202)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E64 #53641E
analogous
#1E3064 #2F1E64 #521E64
triadic
#2F1E64 #642F1E #1E642F
tetradic
#2F1E64 #641E30 #53641E #1E6452
square
#2F1E64 #641E30 #53641E #1E6452
split-complementary
#2F1E64 #64521E #30641E
monochromatic
#0B0718 #191035 #2F1E64 #452C93 #5B3AC2

Accessibility & contrast

On white

14.09
#2F1E64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E64
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E64#FFFFFF#000000##FFFFFF
##2F1E641.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#1C2F3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1e64;
/* rgb */ color: rgb(47, 30, 100);
/* oklch */ color: oklch(30.2% 0.117 288.6);
Tailwind
colors: {
  custom: {
    50: '#6d5b91',
    500: '#2f1e64',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e64;
$custom-light: #6d5b91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e64",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 100
  },
  "hsl": {
    "h": 254.571,
    "s": 53.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30248,
    "c": 0.11682,
    "h": 288.6
  },
  "luminance": 0.02453
}

Semantic roles & 50–950 ramp

primary
#2F1E64
secondary
#849945
accent
#DD4BBA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2F1E64

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

Preview Lab → · Contrast checker → · Palette generator →

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