#2F1658#2F1658

#2F1658 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.112 H 295.6°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1658
RGBrgb(47, 22, 88)
HSLhsl(263, 60%, 22%)
HSVhsv(263, 75%, 35%)
CMYKcmyk(46.6%, 75%, 0%, 65.5%)
CIE-LABlab(14.86, 28.78, -35.26)
CIE-LCHlch(14.86, 45.52, 309.21°)
OKLaboklab(27.87% 0.0483 -0.1008)
OKLCHoklch(27.87% 0.112 295.6)
XYZxyz(3.2202, 1.8827, 9.4244)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1658 #3F5816
analogous
#161E58 #2F1658 #501658
triadic
#2F1658 #582F16 #16582F
tetradic
#2F1658 #58161E #3F5816 #165850
square
#2F1658 #58161E #3F5816 #165850
split-complementary
#2F1658 #585016 #1E5816
monochromatic
#0D0618 #150A27 #2F1658 #492289 #632EBA

Accessibility & contrast

On white

15.25
#2F1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1658
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1658#FFFFFF#000000##FFFFFF
##2F16581.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#242635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1658;
/* rgb */ color: rgb(47, 22, 88);
/* oklch */ color: oklch(27.9% 0.112 295.6);
Tailwind
colors: {
  custom: {
    50: '#6c5588',
    500: '#2f1658',
    950: '#000000',
  },
}
SCSS
$custom: #2f1658;
$custom-light: #6c5588;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1658",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 262.727,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27871,
    "c": 0.11179,
    "h": 295.6
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#2F1658
secondary
#6F8F3B
accent
#E345A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1658

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

Preview Lab → · Contrast checker → · Palette generator →

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