#2F1964#2F1964

#2F1964 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.124 H 290.1°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2F1964
RGBrgb(47, 25, 100)
HSLhsl(258, 60%, 25%)
HSVhsv(258, 75%, 39%)
CMYKcmyk(53%, 75%, 0%, 60.8%)
CIE-LABlab(16.60, 30.75, -40.43)
CIE-LCHlch(16.60, 50.79, 307.25°)
OKLaboklab(29.46% 0.0425 -0.116)
OKLCHoklch(29.46% 0.124 290.1)
XYZxyz(3.8195, 2.2195, 12.2813)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1964 #4E6419
analogous
#192964 #2F1964 #551964
triadic
#2F1964 #642F19 #19642F
tetradic
#2F1964 #641929 #4E6419 #196455
square
#2F1964 #641929 #4E6419 #196455
split-complementary
#2F1964 #645519 #296419
monochromatic
#0C0618 #180D33 #2F1964 #462595 #5D31C6

Accessibility & contrast

On white

14.54
#2F1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F1964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1964
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1964#FFFFFF#000000##FFFFFF
##2F19641.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#1D2C3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1964;
/* rgb */ color: rgb(47, 25, 100);
/* oklch */ color: oklch(29.5% 0.124 290.1);
Tailwind
colors: {
  custom: {
    50: '#6e5891',
    500: '#2f1964',
    950: '#000000',
  },
}
SCSS
$custom: #2f1964;
$custom-light: #6e5891;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1964",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 257.6,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29457,
    "c": 0.12357,
    "h": 290.1
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2F1964
secondary
#7F9A3F
accent
#E345B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1964

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

Preview Lab → · Contrast checker → · Palette generator →

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