#2F2153#2F2153

#2F2153 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.087 H 293.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2F2153
RGBrgb(47, 33, 83)
HSLhsl(257, 43%, 23%)
HSVhsv(257, 60%, 33%)
CMYKcmyk(43.4%, 60.2%, 0%, 67.5%)
CIE-LABlab(17.07, 20.20, -28.32)
CIE-LCHlch(17.07, 34.79, 305.51°)
OKLaboklab(29.35% 0.0344 -0.0804)
OKLCHoklch(29.35% 0.087 293.2)
XYZxyz(3.2771, 2.3165, 8.4564)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2153 #455321
analogous
#212C53 #2F2153 #482153
triadic
#2F2153 #532F21 #21532F
tetradic
#2F2153 #53212C #455321 #215348
square
#2F2153 #53212C #455321 #215348
split-complementary
#2F2153 #534821 #2C5321
monochromatic
#0C0916 #161027 #2F2153 #48327F #6144AB

Accessibility & contrast

On white

14.35
#2F2153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F2153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2153
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2153#FFFFFF#000000##FFFFFF
##2F21531.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092B55
Deuteranopia (green-blind)
#0C2952
Tritanopia (blue-blind)
#262C36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2153;
/* rgb */ color: rgb(47, 33, 83);
/* oklch */ color: oklch(29.3% 0.087 293.2);
Tailwind
colors: {
  custom: {
    50: '#6a5c84',
    500: '#2f2153',
    950: '#000000',
  },
}
SCSS
$custom: #2f2153;
$custom-light: #6a5c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2153",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 256.8,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29347,
    "c": 0.08748,
    "h": 293.2
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#2F2153
secondary
#768749
accent
#D355B0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2153

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

Preview Lab → · Contrast checker → · Palette generator →

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