#2F1363#2F1363

#2F1363 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.130 H 292.0°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1363
RGBrgb(47, 19, 99)
HSLhsl(261, 68%, 23%)
HSVhsv(261, 81%, 39%)
CMYKcmyk(52.5%, 80.8%, 0%, 61.2%)
CIE-LABlab(15.33, 33.74, -41.84)
CIE-LCHlch(15.33, 53.75, 308.88°)
OKLaboklab(28.53% 0.0485 -0.1201)
OKLCHoklch(28.53% 0.13 292)
XYZxyz(3.6567, 1.9708, 11.9897)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1363 #476313
analogous
#131F63 #2F1363 #571363
triadic
#2F1363 #632F13 #13632F
tetradic
#2F1363 #63131F #476313 #136357
square
#2F1363 #63131F #476313 #136357
split-complementary
#2F1363 #635713 #1F6313
monochromatic
#0C051A #170930 #2F1363 #471D96 #6027CA

Accessibility & contrast

On white

15.06
#2F1363 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1363 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1363
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1363#FFFFFF#000000##FFFFFF
##2F13631.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1363;
/* rgb */ color: rgb(47, 19, 99);
/* oklch */ color: oklch(28.5% 0.130 292.0);
Tailwind
colors: {
  custom: {
    50: '#6e5490',
    500: '#2f1363',
    950: '#000000',
  },
}
SCSS
$custom: #2f1363;
$custom-light: #6e5490;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1363",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 99
  },
  "hsl": {
    "h": 261,
    "s": 67.797,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28532,
    "c": 0.12954,
    "h": 292
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#2F1363
secondary
#789B37
accent
#EB3DAE
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2F1363

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

Preview Lab → · Contrast checker → · Palette generator →

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