#2F1468#2F1468

#2F1468 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.135 H 290.0°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2F1468
RGBrgb(47, 20, 104)
HSLhsl(259, 68%, 24%)
HSVhsv(259, 81%, 41%)
CMYKcmyk(54.8%, 80.8%, 0%, 59.2%)
CIE-LABlab(16.02, 34.72, -44.00)
CIE-LCHlch(16.02, 56.05, 308.28°)
OKLaboklab(29.17% 0.0461 -0.1265)
OKLCHoklch(29.17% 0.135 290)
XYZxyz(3.9204, 2.1040, 13.2936)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1468 #4D6814
analogous
#142368 #2F1468 #591468
triadic
#2F1468 #682F14 #14682F
tetradic
#2F1468 #681423 #4D6814 #146859
square
#2F1468 #681423 #4D6814 #146859
split-complementary
#2F1468 #685914 #236814
monochromatic
#0C051A #180A35 #2F1468 #461E9B #5D28CF

Accessibility & contrast

On white

14.78
#2F1468 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1468 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1468
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1468#FFFFFF#000000##FFFFFF
##2F14681.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#1A2C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1468;
/* rgb */ color: rgb(47, 20, 104);
/* oklch */ color: oklch(29.2% 0.135 290.0);
Tailwind
colors: {
  custom: {
    50: '#6f5594',
    500: '#2f1468',
    950: '#000000',
  },
}
SCSS
$custom: #2f1468;
$custom-light: #6f5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1468",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 259.286,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29171,
    "c": 0.13461,
    "h": 290
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#2F1468
secondary
#7E9F39
accent
#EB3DB3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1468

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

Preview Lab → · Contrast checker → · Palette generator →

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