#2F1459#2F1459

#2F1459 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.116 H 295.7°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2F1459
RGBrgb(47, 20, 89)
HSLhsl(263, 63%, 21%)
HSVhsv(263, 78%, 35%)
CMYKcmyk(47.2%, 77.5%, 0%, 65.1%)
CIE-LABlab(14.55, 30.21, -36.45)
CIE-LCHlch(14.55, 47.34, 309.65°)
OKLaboklab(27.68% 0.0502 -0.1043)
OKLCHoklch(27.68% 0.116 295.7)
XYZxyz(3.2251, 1.8258, 9.6318)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1459 #3E5914
analogous
#141C59 #2F1459 #521459
triadic
#2F1459 #592F14 #14592F
tetradic
#2F1459 #59141C #3E5914 #145952
square
#2F1459 #59141C #3E5914 #145952
split-complementary
#2F1459 #595214 #1C5914
monochromatic
#0D0619 #150927 #2F1459 #491F8B #642ABD

Accessibility & contrast

On white

15.38
#2F1459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1459 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1459
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1459#FFFFFF#000000##FFFFFF
##2F14591.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#242635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1459;
/* rgb */ color: rgb(47, 20, 89);
/* oklch */ color: oklch(27.7% 0.116 295.7);
Tailwind
colors: {
  custom: {
    50: '#6c5489',
    500: '#2f1459',
    950: '#000000',
  },
}
SCSS
$custom: #2f1459;
$custom-light: #6c5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1459",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 89
  },
  "hsl": {
    "h": 263.478,
    "s": 63.303,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27677,
    "c": 0.11578,
    "h": 295.7
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#2F1459
secondary
#6E9138
accent
#E641A6
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1459

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

Preview Lab → · Contrast checker → · Palette generator →

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