#2F1C8E#2F1C8E

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

Color values

HEX#2F1C8E
RGBrgb(47, 28, 142)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 80%, 56%)
CMYKcmyk(66.9%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.53, 42.36, -59.21)
CIE-LCHlch(21.53, 72.80, 305.58°)
OKLaboklab(34.24% 0.029 -0.1709)
OKLCHoklch(34.24% 0.173 279.6)
XYZxyz(6.4685, 3.3873, 25.8989)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C8E #7B8E1C
analogous
#1C428E #2F1C8E #681C8E
triadic
#2F1C8E #8E2F1C #1C8E2F
tetradic
#2F1C8E #8E1C42 #7B8E1C #1C8E68
square
#2F1C8E #8E1C42 #7B8E1C #1C8E68
split-complementary
#2F1C8E #8E681C #428E1C
monochromatic
#0D0828 #1E125B #2F1C8E #4026C1 #6249DB

Accessibility & contrast

On white

12.52
#2F1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C8E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C8E#FFFFFF#000000##FFFFFF
##2F1C8E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1c8e;
/* rgb */ color: rgb(47, 28, 142);
/* oklch */ color: oklch(34.2% 0.173 279.6);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#2f1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c8e;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c8e",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 250,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.17339,
    "h": 279.6
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#2F1C8E
secondary
#AABD49
accent
#EA3ECD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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