#2F1364#2F1364

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

Color values

HEX#2F1364
RGBrgb(47, 19, 100)
HSLhsl(261, 68%, 23%)
HSVhsv(261, 81%, 39%)
CMYKcmyk(53%, 81%, 0%, 60.8%)
CIE-LABlab(15.43, 34.04, -42.33)
CIE-LCHlch(15.43, 54.32, 308.80°)
OKLaboklab(28.64% 0.0482 -0.1216)
OKLCHoklch(28.64% 0.131 291.6)
XYZxyz(3.7048, 1.9900, 12.2430)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1364 #486413
analogous
#131F64 #2F1364 #571364
triadic
#2F1364 #642F13 #13642F
tetradic
#2F1364 #64131F #486413 #136457
square
#2F1364 #64131F #486413 #136457
split-complementary
#2F1364 #645713 #1F6413
monochromatic
#0C051A #170931 #2F1364 #471D97 #5F27CB

Accessibility & contrast

On white

15.02
#2F1364 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1364
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1364#FFFFFF#000000##FFFFFF
##2F13641.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1D293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1364;
/* rgb */ color: rgb(47, 19, 100);
/* oklch */ color: oklch(28.6% 0.131 291.6);
Tailwind
colors: {
  custom: {
    50: '#6e5491',
    500: '#2f1364',
    950: '#000000',
  },
}
SCSS
$custom: #2f1364;
$custom-light: #6e5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1364",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 260.741,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28635,
    "c": 0.13077,
    "h": 291.6
  },
  "luminance": 0.0199
}

Semantic roles & 50–950 ramp

primary
#2F1364
secondary
#799C37
accent
#EB3DAF
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1364

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

Preview Lab → · Contrast checker → · Palette generator →

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