#2F1B90#2F1B90

#2F1B90 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.177 H 279.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2F1B90
RGBrgb(47, 27, 144)
HSLhsl(250, 68%, 34%)
HSVhsv(250, 81%, 56%)
CMYKcmyk(67.4%, 81.3%, 0%, 43.5%)
CIE-LABlab(21.58, 43.48, -60.37)
CIE-LCHlch(21.58, 74.39, 305.76°)
OKLaboklab(34.34% 0.0289 -0.1743)
OKLCHoklch(34.34% 0.177 279.4)
XYZxyz(6.5967, 3.4013, 26.6890)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B90 #7C901B
analogous
#1B4290 #2F1B90 #691B90
triadic
#2F1B90 #902F1B #1B902F
tetradic
#2F1B90 #901B42 #7C901B #1B9069
square
#2F1B90 #901B42 #7C901B #1B9069
split-complementary
#2F1B90 #90691B #42901B
monochromatic
#0D0829 #1E115C #2F1B90 #4025C4 #6249DD

Accessibility & contrast

On white

12.50
#2F1B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F1B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B90
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B90#FFFFFF#000000##FFFFFF
##2F1B901.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1b90;
/* rgb */ color: rgb(47, 27, 144);
/* oklch */ color: oklch(34.3% 0.177 279.4);
Tailwind
colors: {
  custom: {
    50: '#765bb2',
    500: '#2f1b90',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b90;
$custom-light: #765bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b90",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 250.256,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34344,
    "c": 0.17669,
    "h": 279.4
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1B90

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

Preview Lab → · Contrast checker → · Palette generator →

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