#2F1869#2F1869

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

Color values

HEX#2F1869
RGBrgb(47, 24, 105)
HSLhsl(257, 63%, 25%)
HSVhsv(257, 77%, 41%)
CMYKcmyk(55.2%, 77.1%, 0%, 58.8%)
CIE-LABlab(16.88, 32.89, -43.26)
CIE-LCHlch(16.88, 54.34, 307.25°)
OKLaboklab(29.81% 0.0423 -0.1243)
OKLCHoklch(29.81% 0.131 288.8)
XYZxyz(4.0480, 2.2773, 13.5881)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1869 #526918
analogous
#182969 #2F1869 #571869
triadic
#2F1869 #692F18 #18692F
tetradic
#2F1869 #691829 #526918 #186957
square
#2F1869 #691829 #526918 #186957
split-complementary
#2F1869 #695718 #296918
monochromatic
#0B0619 #190D37 #2F1869 #45239B #5C2FCD

Accessibility & contrast

On white

14.43
#2F1869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1869
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1869#FFFFFF#000000##FFFFFF
##2F18691.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#192E3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1869;
/* rgb */ color: rgb(47, 24, 105);
/* oklch */ color: oklch(29.8% 0.131 288.8);
Tailwind
colors: {
  custom: {
    50: '#6f5795',
    500: '#2f1869',
    950: '#000000',
  },
}
SCSS
$custom: #2f1869;
$custom-light: #6f5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1869",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 257.037,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29805,
    "c": 0.13131,
    "h": 288.8
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#2F1869
secondary
#839F3E
accent
#E642B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1869

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

Preview Lab → · Contrast checker → · Palette generator →

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