#2F1963#2F1963

#2F1963 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.122 H 290.5°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#2F1963
RGBrgb(47, 25, 99)
HSLhsl(258, 60%, 24%)
HSVhsv(258, 75%, 39%)
CMYKcmyk(52.5%, 74.7%, 0%, 61.2%)
CIE-LABlab(16.51, 30.43, -39.92)
CIE-LCHlch(16.51, 50.20, 307.32°)
OKLaboklab(29.36% 0.0427 -0.1145)
OKLCHoklch(29.36% 0.122 290.5)
XYZxyz(3.7714, 2.2003, 12.0279)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1963 #4D6319
analogous
#192863 #2F1963 #541963
triadic
#2F1963 #632F19 #19632F
tetradic
#2F1963 #631928 #4D6319 #196354
square
#2F1963 #631928 #4D6319 #196354
split-complementary
#2F1963 #635419 #286319
monochromatic
#0C0618 #180D32 #2F1963 #462594 #5D32C5

Accessibility & contrast

On white

14.58
#2F1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1963
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1963#FFFFFF#000000##FFFFFF
##2F19631.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#1E2C3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1963;
/* rgb */ color: rgb(47, 25, 99);
/* oklch */ color: oklch(29.4% 0.122 290.5);
Tailwind
colors: {
  custom: {
    50: '#6d5890',
    500: '#2f1963',
    950: '#000000',
  },
}
SCSS
$custom: #2f1963;
$custom-light: #6d5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1963",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 257.838,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2936,
    "c": 0.12224,
    "h": 290.5
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#2F1963
secondary
#7E993F
accent
#E345B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2F1963

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

Preview Lab → · Contrast checker → · Palette generator →

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