#2F1758#2F1758

#2F1758 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.110 H 295.3°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2F1758
RGBrgb(47, 23, 88)
HSLhsl(262, 59%, 22%)
HSVhsv(262, 74%, 35%)
CMYKcmyk(46.6%, 73.9%, 0%, 65.5%)
CIE-LABlab(15.07, 28.19, -34.92)
CIE-LCHlch(15.07, 44.88, 308.92°)
OKLaboklab(28.02% 0.0471 -0.0998)
OKLCHoklch(28.02% 0.11 295.3)
XYZxyz(3.2397, 1.9216, 9.4308)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1758 #405817
analogous
#172058 #2F1758 #501758
triadic
#2F1758 #582F17 #17582F
tetradic
#2F1758 #581720 #405817 #175850
square
#2F1758 #581720 #405817 #175850
split-complementary
#2F1758 #585017 #205817
monochromatic
#0D0618 #150A27 #2F1758 #492489 #6330B9

Accessibility & contrast

On white

15.17
#2F1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1758
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1758#FFFFFF#000000##FFFFFF
##2F17581.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#242735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1758;
/* rgb */ color: rgb(47, 23, 88);
/* oklch */ color: oklch(28.0% 0.110 295.3);
Tailwind
colors: {
  custom: {
    50: '#6c5688',
    500: '#2f1758',
    950: '#000000',
  },
}
SCSS
$custom: #2f1758;
$custom-light: #6c5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1758",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 262.154,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28022,
    "c": 0.11038,
    "h": 295.3
  },
  "luminance": 0.01922
}

Semantic roles & 50–950 ramp

primary
#2F1758
secondary
#708F3C
accent
#E246A8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1758

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

Preview Lab → · Contrast checker → · Palette generator →

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