#2F1A90#2F1A90

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

Color values

HEX#2F1A90
RGBrgb(47, 26, 144)
HSLhsl(251, 69%, 33%)
HSVhsv(251, 82%, 56%)
CMYKcmyk(67.4%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.42, 43.96, -60.64)
CIE-LCHlch(21.42, 74.90, 305.94°)
OKLaboklab(34.23% 0.0295 -0.1751)
OKLCHoklch(34.23% 0.178 279.5)
XYZxyz(6.5741, 3.3562, 26.6815)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A90 #7B901A
analogous
#1A4090 #2F1A90 #6A1A90
triadic
#2F1A90 #902F1A #1A902F
tetradic
#2F1A90 #901A40 #7B901A #1A906A
square
#2F1A90 #901A40 #7B901A #1A906A
split-complementary
#2F1A90 #906A1A #40901A
monochromatic
#0D0728 #1E115C #2F1A90 #4023C4 #6247DE

Accessibility & contrast

On white

12.56
#2F1A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A90
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A90#FFFFFF#000000##FFFFFF
##2F1A901.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1a90;
/* rgb */ color: rgb(47, 26, 144);
/* oklch */ color: oklch(34.2% 0.178 279.5);
Tailwind
colors: {
  custom: {
    50: '#765bb2',
    500: '#2f1a90',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a90;
$custom-light: #765bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a90",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 250.678,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34229,
    "c": 0.17756,
    "h": 279.5
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#2F1A90
secondary
#AABF47
accent
#EC3CCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A90

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

Preview Lab → · Contrast checker → · Palette generator →

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