#2F215D#2F215D

#2F215D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.102 H 289.6°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#2F215D
RGBrgb(47, 33, 93)
HSLhsl(254, 48%, 25%)
HSVhsv(254, 65%, 36%)
CMYKcmyk(49.5%, 64.5%, 0%, 63.5%)
CIE-LABlab(17.84, 23.47, -33.77)
CIE-LCHlch(17.84, 41.13, 304.80°)
OKLaboklab(30.16% 0.0343 -0.0965)
OKLCHoklch(30.16% 0.102 289.6)
XYZxyz(3.6914, 2.4822, 10.6384)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F215D #4F5D21
analogous
#21315D #2F215D #4D215D
triadic
#2F215D #5D2F21 #215D2F
tetradic
#2F215D #5D2131 #4F5D21 #215D4D
square
#2F215D #5D2131 #4F5D21 #215D4D
split-complementary
#2F215D #5D4D21 #315D21
monochromatic
#0B0817 #181130 #2F215D #46318A #5D41B7

Accessibility & contrast

On white

14.03
#2F215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F215D
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F215D#FFFFFF#000000##FFFFFF
##2F215D1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#212F3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f215d;
/* rgb */ color: rgb(47, 33, 93);
/* oklch */ color: oklch(30.2% 0.102 289.6);
Tailwind
colors: {
  custom: {
    50: '#6c5d8b',
    500: '#2f215d',
    950: '#000000',
  },
}
SCSS
$custom: #2f215d;
$custom-light: #6c5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f215d",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 254,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30159,
    "c": 0.10239,
    "h": 289.6
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#2F215D
secondary
#809149
accent
#D751B8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F215D

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

Preview Lab → · Contrast checker → · Palette generator →

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