#2F1457#2F1457

#2F1457 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.113 H 296.6°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1457
RGBrgb(47, 20, 87)
HSLhsl(264, 63%, 21%)
HSVhsv(264, 77%, 34%)
CMYKcmyk(46%, 77%, 0%, 65.9%)
CIE-LABlab(14.36, 29.61, -35.40)
CIE-LCHlch(14.36, 46.16, 309.91°)
OKLaboklab(27.49% 0.0507 -0.1012)
OKLCHoklch(27.49% 0.113 296.6)
XYZxyz(3.1423, 1.7927, 9.1954)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1457 #3C5714
analogous
#141A57 #2F1457 #501457
triadic
#2F1457 #572F14 #14572F
tetradic
#2F1457 #57141A #3C5714 #145750
square
#2F1457 #57141A #3C5714 #145750
split-complementary
#2F1457 #575014 #1A5714
monochromatic
#0D0619 #140925 #2F1457 #4A1F89 #652BBB

Accessibility & contrast

On white

15.46
#2F1457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1457
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1457#FFFFFF#000000##FFFFFF
##2F14571.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#252534
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1457;
/* rgb */ color: rgb(47, 20, 87);
/* oklch */ color: oklch(27.5% 0.113 296.6);
Tailwind
colors: {
  custom: {
    50: '#6c5487',
    500: '#2f1457',
    950: '#000000',
  },
}
SCSS
$custom: #2f1457;
$custom-light: #6c5487;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1457",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 264.179,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27487,
    "c": 0.11323,
    "h": 296.6
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#2F1457
secondary
#6C8F38
accent
#E642A4
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1457

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

Preview Lab → · Contrast checker → · Palette generator →

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