#2F1958#2F1958

#2F1958 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.107 H 294.6°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#2F1958
RGBrgb(47, 25, 88)
HSLhsl(261, 56%, 22%)
HSVhsv(261, 72%, 35%)
CMYKcmyk(46.6%, 71.6%, 0%, 65.5%)
CIE-LABlab(15.51, 26.99, -34.21)
CIE-LCHlch(15.51, 43.57, 308.27°)
OKLaboklab(28.34% 0.0447 -0.0977)
OKLCHoklch(28.34% 0.108 294.6)
XYZxyz(3.2809, 2.0041, 9.4446)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1958 #425819
analogous
#192358 #2F1958 #4F1958
triadic
#2F1958 #582F19 #19582F
tetradic
#2F1958 #581923 #425819 #19584F
square
#2F1958 #581923 #425819 #19584F
split-complementary
#2F1958 #584F19 #235819
monochromatic
#0D0718 #160B28 #2F1958 #482788 #6234B7

Accessibility & contrast

On white

14.99
#2F1958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1958
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1958#FFFFFF#000000##FFFFFF
##2F19581.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#242836
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1958;
/* rgb */ color: rgb(47, 25, 88);
/* oklch */ color: oklch(28.3% 0.107 294.6);
Tailwind
colors: {
  custom: {
    50: '#6c5788',
    500: '#2f1958',
    950: '#000000',
  },
}
SCSS
$custom: #2f1958;
$custom-light: #6c5788;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1958",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 260.952,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28337,
    "c": 0.1075,
    "h": 294.6
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#2F1958
secondary
#728E3E
accent
#DF49AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1958

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

Preview Lab → · Contrast checker → · Palette generator →

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