#2F2168#2F2168

#2F2168 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.1% C 0.118 H 286.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2F2168
RGBrgb(47, 33, 104)
HSLhsl(252, 52%, 27%)
HSVhsv(252, 68%, 41%)
CMYKcmyk(54.8%, 68.3%, 0%, 59.2%)
CIE-LABlab(18.76, 27.13, -39.53)
CIE-LCHlch(18.76, 47.94, 304.46°)
OKLaboklab(31.12% 0.0334 -0.1134)
OKLCHoklch(31.12% 0.118 286.4)
XYZxyz(4.2141, 2.6913, 13.3914)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2168 #5A6821
analogous
#213768 #2F2168 #532168
triadic
#2F2168 #682F21 #21682F
tetradic
#2F2168 #682137 #5A6821 #216853
square
#2F2168 #682137 #5A6821 #216853
split-complementary
#2F2168 #685321 #376821
monochromatic
#0A0717 #1A123A #2F2168 #443096 #5A41C3

Accessibility & contrast

On white

13.65
#2F2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2168
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2168#FFFFFF#000000##FFFFFF
##2F21681.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#193241
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f2168;
/* rgb */ color: rgb(47, 33, 104);
/* oklch */ color: oklch(31.1% 0.118 286.4);
Tailwind
colors: {
  custom: {
    50: '#6e5d94',
    500: '#2f2168',
    950: '#000000',
  },
}
SCSS
$custom: #2f2168;
$custom-light: #6e5d94;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2168",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 251.831,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31124,
    "c": 0.11819,
    "h": 286.4
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#2F2168
secondary
#8C9C49
accent
#DB4DBF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F2168

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

Preview Lab → · Contrast checker → · Palette generator →

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