#2F1B63#2F1B63

#2F1B63 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.120 H 289.9°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2F1B63
RGBrgb(47, 27, 99)
HSLhsl(257, 57%, 25%)
HSVhsv(257, 73%, 39%)
CMYKcmyk(52.5%, 72.7%, 0%, 61.2%)
CIE-LABlab(16.94, 29.24, -39.22)
CIE-LCHlch(16.94, 48.92, 306.71°)
OKLaboklab(29.67% 0.0406 -0.1125)
OKLCHoklch(29.67% 0.12 289.9)
XYZxyz(3.8157, 2.2889, 12.0427)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B63 #4F631B
analogous
#1B2B63 #2F1B63 #531B63
triadic
#2F1B63 #632F1B #1B632F
tetradic
#2F1B63 #631B2B #4F631B #1B6353
square
#2F1B63 #631B2B #4F631B #1B6353
split-complementary
#2F1B63 #63531B #2B631B
monochromatic
#0B0718 #180E33 #2F1B63 #462893 #5D35C3

Accessibility & contrast

On white

14.41
#2F1B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B63
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B63#FFFFFF#000000##FFFFFF
##2F1B631.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#1D2D3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1b63;
/* rgb */ color: rgb(47, 27, 99);
/* oklch */ color: oklch(29.7% 0.120 289.9);
Tailwind
colors: {
  custom: {
    50: '#6d5990',
    500: '#2f1b63',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b63;
$custom-light: #6d5990;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b63",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 256.667,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29668,
    "c": 0.11958,
    "h": 289.9
  },
  "luminance": 0.02289
}

Semantic roles & 50–950 ramp

primary
#2F1B63
secondary
#809841
accent
#E047B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2F1B63

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

Preview Lab → · Contrast checker → · Palette generator →

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