#2F1867#2F1867

#2F1867 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.129 H 289.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2F1867
RGBrgb(47, 24, 103)
HSLhsl(257, 62%, 25%)
HSVhsv(257, 77%, 40%)
CMYKcmyk(54.4%, 76.7%, 0%, 59.6%)
CIE-LABlab(16.68, 32.26, -42.27)
CIE-LCHlch(16.68, 53.17, 307.35°)
OKLaboklab(29.6% 0.0428 -0.1214)
OKLCHoklch(29.6% 0.129 289.4)
XYZxyz(3.9464, 2.2367, 13.0531)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1867 #506718
analogous
#182967 #2F1867 #561867
triadic
#2F1867 #672F18 #18672F
tetradic
#2F1867 #671829 #506718 #186756
square
#2F1867 #671829 #506718 #186756
split-complementary
#2F1867 #675618 #296718
monochromatic
#0B0619 #180C35 #2F1867 #462499 #5C2FCA

Accessibility & contrast

On white

14.51
#2F1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1867
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1867#FFFFFF#000000##FFFFFF
##2F18671.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1B2D3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1867;
/* rgb */ color: rgb(47, 24, 103);
/* oklch */ color: oklch(29.6% 0.129 289.4);
Tailwind
colors: {
  custom: {
    50: '#6e5793',
    500: '#2f1867',
    950: '#000000',
  },
}
SCSS
$custom: #2f1867;
$custom-light: #6e5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1867",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 257.468,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29605,
    "c": 0.12873,
    "h": 289.4
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#2F1867
secondary
#819D3E
accent
#E543B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1867

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

Preview Lab → · Contrast checker → · Palette generator →

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