#2F1890#2F1890

#2F1890 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.179 H 279.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2F1890
RGBrgb(47, 24, 144)
HSLhsl(252, 71%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(67.4%, 83.3%, 0%, 43.5%)
CIE-LABlab(21.10, 44.90, -61.17)
CIE-LCHlch(21.10, 75.88, 306.28°)
OKLaboklab(34.01% 0.0304 -0.1766)
OKLCHoklch(34.01% 0.179 279.8)
XYZxyz(6.5314, 3.2707, 26.6673)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1890 #799018
analogous
#183D90 #2F1890 #6B1890
triadic
#2F1890 #902F18 #18902F
tetradic
#2F1890 #90183D #799018 #18906B
square
#2F1890 #90183D #799018 #18906B
split-complementary
#2F1890 #906B18 #3D9018
monochromatic
#0D0727 #1E0F5C #2F1890 #4021C4 #6143E0

Accessibility & contrast

On white

12.69
#2F1890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1890
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1890#FFFFFF#000000##FFFFFF
##2F18901.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1890;
/* rgb */ color: rgb(47, 24, 144);
/* oklch */ color: oklch(34.0% 0.179 279.8);
Tailwind
colors: {
  custom: {
    50: '#775ab2',
    500: '#2f1890',
    950: '#000000',
  },
}
SCSS
$custom: #2f1890;
$custom-light: #775ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1890",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 251.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34007,
    "c": 0.17921,
    "h": 279.8
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#2F1890
secondary
#A8C043
accent
#EE3ACC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1890

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

Preview Lab → · Contrast checker → · Palette generator →

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