#2F2164#2F2164

#2F2164 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.113 H 287.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2F2164
RGBrgb(47, 33, 100)
HSLhsl(253, 50%, 26%)
HSVhsv(253, 67%, 39%)
CMYKcmyk(53%, 67%, 0%, 60.8%)
CIE-LABlab(18.42, 25.79, -37.46)
CIE-LCHlch(18.42, 45.48, 304.55°)
OKLaboklab(30.76% 0.0338 -0.1073)
OKLCHoklch(30.76% 0.113 287.5)
XYZxyz(4.0157, 2.6120, 12.3467)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2164 #566421
analogous
#213464 #2F2164 #502164
triadic
#2F2164 #642F21 #21642F
tetradic
#2F2164 #642134 #566421 #216450
square
#2F2164 #642134 #566421 #216450
split-complementary
#2F2164 #645021 #346421
monochromatic
#0B0817 #191236 #2F2164 #453092 #5A40C0

Accessibility & contrast

On white

13.79
#2F2164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F2164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2164
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2164#FFFFFF#000000##FFFFFF
##2F21641.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#1C313F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2164;
/* rgb */ color: rgb(47, 33, 100);
/* oklch */ color: oklch(30.8% 0.113 287.5);
Tailwind
colors: {
  custom: {
    50: '#6d5d91',
    500: '#2f2164',
    950: '#000000',
  },
}
SCSS
$custom: #2f2164;
$custom-light: #6d5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2164",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 252.537,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30765,
    "c": 0.11251,
    "h": 287.5
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#2F2164
secondary
#879849
accent
#DA4EBD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2F2164

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

Preview Lab → · Contrast checker → · Palette generator →

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