#2F1B4E#2F1B4E

#2F1B4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.090 H 298.4°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2F1B4E
RGBrgb(47, 27, 78)
HSLhsl(264, 49%, 21%)
HSVhsv(264, 65%, 31%)
CMYKcmyk(39.7%, 65.4%, 0%, 69.4%)
CIE-LABlab(15.16, 22.63, -27.99)
CIE-LCHlch(15.16, 35.99, 308.95°)
OKLaboklab(27.82% 0.043 -0.0795)
OKLCHoklch(27.82% 0.09 298.4)
XYZxyz(2.9390, 1.9382, 7.4255)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B4E #3A4E1B
analogous
#1B214E #2F1B4E #481B4E
triadic
#2F1B4E #4E2F1B #1B4E2F
tetradic
#2F1B4E #4E1B21 #3A4E1B #1B4E48
square
#2F1B4E #4E1B21 #3A4E1B #1B4E48
split-complementary
#2F1B4E #4E481B #214E1B
monochromatic
#0E0817 #140B21 #2F1B4E #4A2B7B #663AA9

Accessibility & contrast

On white

15.13
#2F1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B4E
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B4E#FFFFFF#000000##FFFFFF
##2F1B4E1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012650
Deuteranopia (green-blind)
#08264D
Tritanopia (blue-blind)
#282631
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1b4e;
/* rgb */ color: rgb(47, 27, 78);
/* oklch */ color: oklch(27.8% 0.090 298.4);
Tailwind
colors: {
  custom: {
    50: '#6a5880',
    500: '#2f1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b4e;
$custom-light: #6a5880;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b4e",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 263.529,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27824,
    "c": 0.09034,
    "h": 298.4
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#2F1B4E
secondary
#6A8441
accent
#D850A3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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