#2F2162#2F2162

#2F2162 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.110 H 288.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2162
RGBrgb(47, 33, 98)
HSLhsl(253, 50%, 26%)
HSVhsv(253, 66%, 38%)
CMYKcmyk(52%, 66.3%, 0%, 61.6%)
CIE-LABlab(18.25, 25.13, -36.42)
CIE-LCHlch(18.25, 44.25, 304.60°)
OKLaboklab(30.59% 0.034 -0.1043)
OKLCHoklch(30.59% 0.11 288)
XYZxyz(3.9201, 2.5737, 11.8431)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2162 #546221
analogous
#213362 #2F2162 #4F2162
triadic
#2F2162 #622F21 #21622F
tetradic
#2F2162 #622133 #546221 #21624F
square
#2F2162 #622133 #546221 #21624F
split-complementary
#2F2162 #624F21 #336221
monochromatic
#0B0817 #191234 #2F2162 #453090 #5B40BE

Accessibility & contrast

On white

13.86
#2F2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2162
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2162#FFFFFF#000000##FFFFFF
##2F21621.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#1E303E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2162;
/* rgb */ color: rgb(47, 33, 98);
/* oklch */ color: oklch(30.6% 0.110 288.0);
Tailwind
colors: {
  custom: {
    50: '#6d5d8f',
    500: '#2f2162',
    950: '#000000',
  },
}
SCSS
$custom: #2f2162;
$custom-light: #6d5d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2162",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 252.923,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30589,
    "c": 0.10965,
    "h": 288
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#2F2162
secondary
#859649
accent
#D94FBB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F2162

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

Preview Lab → · Contrast checker → · Palette generator →

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