#2F2464#2F2464

#2F2464 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.3% C 0.108 H 286.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2F2464
RGBrgb(47, 36, 100)
HSLhsl(250, 47%, 27%)
HSVhsv(250, 64%, 39%)
CMYKcmyk(53%, 64%, 0%, 60.8%)
CIE-LABlab(19.17, 23.82, -36.25)
CIE-LCHlch(19.17, 43.37, 303.31°)
OKLaboklab(31.31% 0.0302 -0.1037)
OKLCHoklch(31.31% 0.108 286.2)
XYZxyz(4.1027, 2.7860, 12.3757)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2464 #596424
analogous
#243964 #2F2464 #4F2464
triadic
#2F2464 #642F24 #24642F
tetradic
#2F2464 #642439 #596424 #24644F
square
#2F2464 #642439 #596424 #24644F
split-complementary
#2F2464 #644F24 #396424
monochromatic
#0B0817 #1A1437 #2F2464 #443491 #5A46BC

Accessibility & contrast

On white

13.49
#2F2464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2464
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2464#FFFFFF#000000##FFFFFF
##2F24641.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#1C3340
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f2464;
/* rgb */ color: rgb(47, 36, 100);
/* oklch */ color: oklch(31.3% 0.108 286.2);
Tailwind
colors: {
  custom: {
    50: '#6d5f91',
    500: '#2f2464',
    950: '#000000',
  },
}
SCSS
$custom: #2f2464;
$custom-light: #6d5f91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2464",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 100
  },
  "hsl": {
    "h": 250.313,
    "s": 47.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31311,
    "c": 0.10806,
    "h": 286.2
  },
  "luminance": 0.02786
}

Semantic roles & 50–950 ramp

primary
#2F2464
secondary
#8B974C
accent
#D751C0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2F2464

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

Preview Lab → · Contrast checker → · Palette generator →

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