#2F1259#2F1259

#2F1259 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.118 H 296.2°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2F1259
RGBrgb(47, 18, 89)
HSLhsl(265, 66%, 21%)
HSVhsv(265, 80%, 35%)
CMYKcmyk(47.2%, 79.8%, 0%, 65.1%)
CIE-LABlab(14.16, 31.29, -37.07)
CIE-LCHlch(14.16, 48.51, 310.17°)
OKLaboklab(27.41% 0.0523 -0.1061)
OKLCHoklch(27.41% 0.118 296.2)
XYZxyz(3.1913, 1.7581, 9.6205)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1259 #3C5912
analogous
#121859 #2F1259 #521259
triadic
#2F1259 #592F12 #12592F
tetradic
#2F1259 #591218 #3C5912 #125952
square
#2F1259 #591218 #3C5912 #125952
split-complementary
#2F1259 #595212 #185912
monochromatic
#0D0519 #140826 #2F1259 #4A1C8C #6527BF

Accessibility & contrast

On white

15.54
#2F1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1259
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1259#FFFFFF#000000##FFFFFF
##2F12591.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#242534
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1259;
/* rgb */ color: rgb(47, 18, 89);
/* oklch */ color: oklch(27.4% 0.118 296.2);
Tailwind
colors: {
  custom: {
    50: '#6c5389',
    500: '#2f1259',
    950: '#000000',
  },
}
SCSS
$custom: #2f1259;
$custom-light: #6c5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1259",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 264.507,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27407,
    "c": 0.11833,
    "h": 296.2
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#2F1259
secondary
#6C9235
accent
#E93FA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1259

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

Preview Lab → · Contrast checker → · Palette generator →

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