#2F1968#2F1968

#2F1968 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.129 H 288.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1968
RGBrgb(47, 25, 104)
HSLhsl(257, 61%, 25%)
HSVhsv(257, 76%, 41%)
CMYKcmyk(54.8%, 76%, 0%, 59.2%)
CIE-LABlab(16.98, 32.01, -42.43)
CIE-LCHlch(16.98, 53.15, 307.03°)
OKLaboklab(29.85% 0.0416 -0.1219)
OKLCHoklch(29.85% 0.129 288.8)
XYZxyz(4.0179, 2.2989, 13.3260)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1968 #526819
analogous
#192A68 #2F1968 #561968
triadic
#2F1968 #682F19 #19682F
tetradic
#2F1968 #68192A #526819 #196856
square
#2F1968 #68192A #526819 #196856
split-complementary
#2F1968 #685619 #2A6819
monochromatic
#0B0619 #190D37 #2F1968 #452599 #5C31CB

Accessibility & contrast

On white

14.39
#2F1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1968
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1968#FFFFFF#000000##FFFFFF
##2F19681.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#1A2E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1968;
/* rgb */ color: rgb(47, 25, 104);
/* oklch */ color: oklch(29.8% 0.129 288.8);
Tailwind
colors: {
  custom: {
    50: '#6e5894',
    500: '#2f1968',
    950: '#000000',
  },
}
SCSS
$custom: #2f1968;
$custom-light: #6e5894;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1968",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 256.709,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29848,
    "c": 0.12881,
    "h": 288.8
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#2F1968
secondary
#839E3F
accent
#E443B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1968

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

Preview Lab → · Contrast checker → · Palette generator →

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