#2F1462#2F1462

#2F1462 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.127 H 292.1°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2F1462
RGBrgb(47, 20, 98)
HSLhsl(261, 66%, 23%)
HSVhsv(261, 80%, 38%)
CMYKcmyk(52%, 79.6%, 0%, 61.6%)
CIE-LABlab(15.42, 32.91, -41.04)
CIE-LCHlch(15.42, 52.61, 308.73°)
OKLaboklab(28.56% 0.0479 -0.1178)
OKLCHoklch(28.56% 0.127 292.1)
XYZxyz(3.6264, 1.9864, 11.7452)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1462 #476214
analogous
#142062 #2F1462 #561462
triadic
#2F1462 #622F14 #14622F
tetradic
#2F1462 #621420 #476214 #146256
square
#2F1462 #621420 #476214 #146256
split-complementary
#2F1462 #625614 #206214
monochromatic
#0C0519 #170A2F #2F1462 #471E95 #6029C8

Accessibility & contrast

On white

15.03
#2F1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1462
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1462#FFFFFF#000000##FFFFFF
##2F14621.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#1E293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1462;
/* rgb */ color: rgb(47, 20, 98);
/* oklch */ color: oklch(28.6% 0.127 292.1);
Tailwind
colors: {
  custom: {
    50: '#6e558f',
    500: '#2f1462',
    950: '#000000',
  },
}
SCSS
$custom: #2f1462;
$custom-light: #6e558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1462",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 260.769,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28559,
    "c": 0.12715,
    "h": 292.1
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#2F1462
secondary
#789938
accent
#E93FAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1462

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

Preview Lab → · Contrast checker → · Palette generator →

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