#2F1773#2F1773

#2F1773 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.145 H 286.1°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2F1773
RGBrgb(47, 23, 115)
HSLhsl(256, 67%, 27%)
HSVhsv(256, 80%, 45%)
CMYKcmyk(59.1%, 80%, 0%, 54.9%)
CIE-LABlab(17.71, 36.53, -48.39)
CIE-LCHlch(17.71, 60.63, 307.05°)
OKLaboklab(30.7% 0.0403 -0.1393)
OKLCHoklch(30.7% 0.145 286.1)
XYZxyz(4.5723, 2.4547, 16.4492)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1773 #5B7317
analogous
#172D73 #2F1773 #5D1773
triadic
#2F1773 #732F17 #17732F
tetradic
#2F1773 #73172D #5B7317 #17735D
square
#2F1773 #73172D #5B7317 #17735D
split-complementary
#2F1773 #735D17 #2D7317
monochromatic
#0A051A #1A0D40 #2F1773 #4421A6 #5A2FD5

Accessibility & contrast

On white

14.08
#2F1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1773
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1773#FFFFFF#000000##FFFFFF
##2F17731.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#0E3144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1773;
/* rgb */ color: rgb(47, 23, 115);
/* oklch */ color: oklch(30.7% 0.145 286.1);
Tailwind
colors: {
  custom: {
    50: '#71579c',
    500: '#2f1773',
    950: '#000000',
  },
}
SCSS
$custom: #2f1773;
$custom-light: #71579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1773",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 255.652,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30701,
    "c": 0.14506,
    "h": 286.1
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

primary
#2F1773
secondary
#8DA93D
accent
#EA3EBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1773

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

Preview Lab → · Contrast checker → · Palette generator →

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