#2F2368#2F2368

#2F2368 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.5% C 0.115 H 285.6°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2F2368
RGBrgb(47, 35, 104)
HSLhsl(250, 50%, 27%)
HSVhsv(250, 66%, 41%)
CMYKcmyk(54.8%, 66.3%, 0%, 59.2%)
CIE-LABlab(19.25, 25.83, -38.74)
CIE-LCHlch(19.25, 46.56, 303.70°)
OKLaboklab(31.48% 0.0311 -0.1111)
OKLCHoklch(31.48% 0.115 285.6)
XYZxyz(4.2713, 2.8057, 13.4105)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2368 #5C6823
analogous
#233A68 #2F2368 #522368
triadic
#2F2368 #682F23 #23682F
tetradic
#2F2368 #68233A #5C6823 #236852
square
#2F2368 #68233A #5C6823 #236852
split-complementary
#2F2368 #685223 #3A6823
monochromatic
#0A0817 #1A143A #2F2368 #443296 #5A45C0

Accessibility & contrast

On white

13.45
#2F2368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F2368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2368
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2368#FFFFFF#000000##FFFFFF
##2F23681.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#002D67
Tritanopia (blue-blind)
#193442
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f2368;
/* rgb */ color: rgb(47, 35, 104);
/* oklch */ color: oklch(31.5% 0.115 285.6);
Tailwind
colors: {
  custom: {
    50: '#6d5e94',
    500: '#2f2368',
    950: '#000000',
  },
}
SCSS
$custom: #2f2368;
$custom-light: #6d5e94;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2368",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 104
  },
  "hsl": {
    "h": 250.435,
    "s": 49.64,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31477,
    "c": 0.11533,
    "h": 285.6
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#2F2368
secondary
#8E9B4B
accent
#D94FC1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2F2368

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

Preview Lab → · Contrast checker → · Palette generator →

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