#2F1762#2F1762

#2F1762 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.123 H 291.4°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2F1762
RGBrgb(47, 23, 98)
HSLhsl(259, 62%, 24%)
HSVhsv(259, 77%, 38%)
CMYKcmyk(52%, 76.5%, 0%, 61.6%)
CIE-LABlab(16.00, 31.27, -40.09)
CIE-LCHlch(16.00, 50.84, 307.96°)
OKLaboklab(28.97% 0.045 -0.115)
OKLCHoklch(28.97% 0.124 291.4)
XYZxyz(3.6827, 2.0988, 11.7640)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1762 #4A6217
analogous
#172462 #2F1762 #541762
triadic
#2F1762 #622F17 #17622F
tetradic
#2F1762 #621724 #4A6217 #176254
square
#2F1762 #621724 #4A6217 #176254
split-complementary
#2F1762 #625417 #246217
monochromatic
#0C0619 #170B30 #2F1762 #472394 #5F2EC5

Accessibility & contrast

On white

14.79
#2F1762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1762
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1762#FFFFFF#000000##FFFFFF
##2F17621.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1762;
/* rgb */ color: rgb(47, 23, 98);
/* oklch */ color: oklch(29.0% 0.123 291.4);
Tailwind
colors: {
  custom: {
    50: '#6d568f',
    500: '#2f1762',
    950: '#000000',
  },
}
SCSS
$custom: #2f1762;
$custom-light: #6d568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1762",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 259.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2897,
    "c": 0.1235,
    "h": 291.4
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#2F1762
secondary
#7B993C
accent
#E543B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1762

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

Preview Lab → · Contrast checker → · Palette generator →

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