#2F1B7E#2F1B7E

#2F1B7E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.155 H 282.8°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1B7E
RGBrgb(47, 27, 126)
HSLhsl(252, 65%, 30%)
HSVhsv(252, 79%, 49%)
CMYKcmyk(62.7%, 78.6%, 0%, 50.6%)
CIE-LABlab(19.62, 37.85, -52.31)
CIE-LCHlch(19.62, 64.57, 305.89°)
OKLaboklab(32.38% 0.0342 -0.1508)
OKLCHoklch(32.38% 0.155 282.8)
XYZxyz(5.3289, 2.8942, 20.0124)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B7E #6A7E1B
analogous
#1B397E #2F1B7E #601B7E
triadic
#2F1B7E #7E2F1B #1B7E2F
tetradic
#2F1B7E #7E1B39 #6A7E1B #1B7E60
square
#2F1B7E #7E1B39 #6A7E1B #1B7E60
split-complementary
#2F1B7E #7E601B #397E1B
monochromatic
#090519 #1C104C #2F1B7E #4226B0 #5C3ED6

Accessibility & contrast

On white

13.30
#2F1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B7E
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B7E#FFFFFF#000000##FFFFFF
##2F1B7E1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1b7e;
/* rgb */ color: rgb(47, 27, 126);
/* oklch */ color: oklch(32.4% 0.155 282.8);
Tailwind
colors: {
  custom: {
    50: '#725aa4',
    500: '#2f1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b7e;
$custom-light: #725aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b7e",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 252.121,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32384,
    "c": 0.15465,
    "h": 282.8
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#2F1B7E
secondary
#9BB243
accent
#E840C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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