#2F1253#2F1253

#2F1253 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.111 H 299.1°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1253
RGBrgb(47, 18, 83)
HSLhsl(267, 64%, 20%)
HSVhsv(267, 78%, 33%)
CMYKcmyk(43.4%, 78.3%, 0%, 67.5%)
CIE-LABlab(13.60, 29.54, -33.93)
CIE-LCHlch(13.60, 44.99, 311.04°)
OKLaboklab(26.83% 0.0538 -0.0969)
OKLCHoklch(26.83% 0.111 299.1)
XYZxyz(2.9495, 1.6614, 8.3472)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1253 #365312
analogous
#121653 #2F1253 #4F1253
triadic
#2F1253 #532F12 #12532F
tetradic
#2F1253 #531216 #365312 #12534F
square
#2F1253 #531216 #365312 #12534F
split-complementary
#2F1253 #534F12 #165312
monochromatic
#0E0519 #130721 #2F1253 #4B1D85 #6828B8

Accessibility & contrast

On white

15.76
#2F1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1253
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1253#FFFFFF#000000##FFFFFF
##2F12531.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#262231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1253;
/* rgb */ color: rgb(47, 18, 83);
/* oklch */ color: oklch(26.8% 0.111 299.1);
Tailwind
colors: {
  custom: {
    50: '#6c5384',
    500: '#2f1253',
    950: '#000000',
  },
}
SCSS
$custom: #2f1253;
$custom-light: #6c5384;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1253",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 266.769,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26834,
    "c": 0.11083,
    "h": 299.1
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#2F1253
secondary
#658C35
accent
#E7409D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1253

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

Preview Lab → · Contrast checker → · Palette generator →

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