#2F2148#2F2148

#2F2148 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.5% C 0.071 H 298.4°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2148
RGBrgb(47, 33, 72)
HSLhsl(262, 37%, 21%)
HSVhsv(262, 54%, 28%)
CMYKcmyk(34.7%, 54.2%, 0%, 71.8%)
CIE-LABlab(16.30, 16.73, -22.04)
CIE-LCHlch(16.30, 27.67, 307.21°)
OKLaboklab(28.53% 0.0335 -0.062)
OKLCHoklch(28.53% 0.071 298.4)
XYZxyz(2.8856, 2.1599, 6.3945)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2148 #3A4821
analogous
#212648 #2F2148 #422148
triadic
#2F2148 #482F21 #21482F
tetradic
#2F2148 #482126 #3A4821 #214842
square
#2F2148 #482126 #3A4821 #214842
split-complementary
#2F2148 #484221 #264821
monochromatic
#0E0A15 #140E1E #2F2148 #4A3472 #66479C

Accessibility & contrast

On white

14.66
#2F2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F2148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2148
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2148#FFFFFF#000000##FFFFFF
##2F21481.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142849
Deuteranopia (green-blind)
#172847
Tritanopia (blue-blind)
#2A2831
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f2148;
/* rgb */ color: rgb(47, 33, 72);
/* oklch */ color: oklch(28.5% 0.071 298.4);
Tailwind
colors: {
  custom: {
    50: '#695c7b',
    500: '#2f2148',
    950: '#000000',
  },
}
SCSS
$custom: #2f2148;
$custom-light: #695c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2148",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 261.538,
    "s": 37.143,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28534,
    "c": 0.07052,
    "h": 298.4
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#2F2148
secondary
#6A7C49
accent
#CD5BA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F2148

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

Preview Lab → · Contrast checker → · Palette generator →

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