#2F1B8F#2F1B8F

#2F1B8F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.175 H 279.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2F1B8F
RGBrgb(47, 27, 143)
HSLhsl(250, 68%, 33%)
HSVhsv(250, 81%, 56%)
CMYKcmyk(67.1%, 81.1%, 0%, 43.9%)
CIE-LABlab(21.47, 43.17, -59.93)
CIE-LCHlch(21.47, 73.86, 305.77°)
OKLaboklab(34.23% 0.0292 -0.173)
OKLCHoklch(34.23% 0.175 279.6)
XYZxyz(6.5206, 3.3708, 26.2883)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B8F #7B8F1B
analogous
#1B418F #2F1B8F #691B8F
triadic
#2F1B8F #8F2F1B #1B8F2F
tetradic
#2F1B8F #8F1B41 #7B8F1B #1B8F69
square
#2F1B8F #8F1B41 #7B8F1B #1B8F69
split-complementary
#2F1B8F #8F691B #418F1B
monochromatic
#0D0828 #1E115C #2F1B8F #4025C2 #6248DC

Accessibility & contrast

On white

12.54
#2F1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B8F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B8F#FFFFFF#000000##FFFFFF
##2F1B8F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1b8f;
/* rgb */ color: rgb(47, 27, 143);
/* oklch */ color: oklch(34.2% 0.175 279.6);
Tailwind
colors: {
  custom: {
    50: '#765bb1',
    500: '#2f1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b8f;
$custom-light: #765bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b8f",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 250.345,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34233,
    "c": 0.17549,
    "h": 279.6
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#2F1B8F
secondary
#AABE48
accent
#EB3DCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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