#2F1868#2F1868

#2F1868 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.130 H 289.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1868
RGBrgb(47, 24, 104)
HSLhsl(257, 63%, 25%)
HSVhsv(257, 77%, 41%)
CMYKcmyk(54.8%, 76.9%, 0%, 59.2%)
CIE-LABlab(16.78, 32.57, -42.76)
CIE-LCHlch(16.78, 53.75, 307.30°)
OKLaboklab(29.71% 0.0426 -0.1229)
OKLCHoklch(29.71% 0.13 289.1)
XYZxyz(3.9969, 2.2569, 13.3190)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1868 #516818
analogous
#182968 #2F1868 #571868
triadic
#2F1868 #682F18 #18682F
tetradic
#2F1868 #681829 #516818 #186857
square
#2F1868 #681829 #516818 #186857
split-complementary
#2F1868 #685718 #296818
monochromatic
#0B0619 #190D36 #2F1868 #45239A #5C2FCB

Accessibility & contrast

On white

14.47
#2F1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1868
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1868#FFFFFF#000000##FFFFFF
##2F18681.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#1A2D3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1868;
/* rgb */ color: rgb(47, 24, 104);
/* oklch */ color: oklch(29.7% 0.130 289.1);
Tailwind
colors: {
  custom: {
    50: '#6e5794',
    500: '#2f1868',
    950: '#000000',
  },
}
SCSS
$custom: #2f1868;
$custom-light: #6e5794;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1868",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 257.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29705,
    "c": 0.13002,
    "h": 289.1
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#2F1868
secondary
#829E3E
accent
#E642B7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1868

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

Preview Lab → · Contrast checker → · Palette generator →

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