#2F1862#2F1862

#2F1862 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.122 H 291.1°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1862
RGBrgb(47, 24, 98)
HSLhsl(259, 61%, 24%)
HSVhsv(259, 76%, 38%)
CMYKcmyk(52%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.20, 30.70, -39.75)
CIE-LCHlch(16.20, 50.23, 307.68°)
OKLaboklab(29.12% 0.044 -0.114)
OKLCHoklch(29.12% 0.122 291.1)
XYZxyz(3.7029, 2.1393, 11.7707)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1862 #4B6218
analogous
#182662 #2F1862 #541862
triadic
#2F1862 #622F18 #18622F
tetradic
#2F1862 #621826 #4B6218 #186254
square
#2F1862 #621826 #4B6218 #186254
split-complementary
#2F1862 #625418 #266218
monochromatic
#0C0619 #170C31 #2F1862 #472493 #5E30C4

Accessibility & contrast

On white

14.71
#2F1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1862
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1862#FFFFFF#000000##FFFFFF
##2F18621.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#1E2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1862;
/* rgb */ color: rgb(47, 24, 98);
/* oklch */ color: oklch(29.1% 0.122 291.1);
Tailwind
colors: {
  custom: {
    50: '#6d578f',
    500: '#2f1862',
    950: '#000000',
  },
}
SCSS
$custom: #2f1862;
$custom-light: #6d578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1862",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 258.649,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29115,
    "c": 0.12223,
    "h": 291.1
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#2F1862
secondary
#7C983E
accent
#E444B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1862

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

Preview Lab → · Contrast checker → · Palette generator →

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