#2F1674#2F1674

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

Color values

HEX#2F1674
RGBrgb(47, 22, 116)
HSLhsl(256, 68%, 27%)
HSVhsv(256, 81%, 45%)
CMYKcmyk(59.5%, 81%, 0%, 54.5%)
CIE-LABlab(17.64, 37.35, -49.16)
CIE-LCHlch(17.64, 61.74, 307.23°)
OKLaboklab(30.68% 0.0408 -0.1416)
OKLCHoklch(30.68% 0.147 286.1)
XYZxyz(4.6106, 2.4388, 16.7474)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1674 #5B7416
analogous
#162C74 #2F1674 #5E1674
triadic
#2F1674 #742F16 #16742F
tetradic
#2F1674 #74162C #5B7416 #16745E
square
#2F1674 #74162C #5B7416 #16745E
split-complementary
#2F1674 #745E16 #2C7416
monochromatic
#0A051A #1A0C41 #2F1674 #4420A7 #5A2DD7

Accessibility & contrast

On white

14.11
#2F1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1674
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1674#FFFFFF#000000##FFFFFF
##2F16741.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#0D3145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1674;
/* rgb */ color: rgb(47, 22, 116);
/* oklch */ color: oklch(30.7% 0.147 286.1);
Tailwind
colors: {
  custom: {
    50: '#71579d',
    500: '#2f1674',
    950: '#000000',
  },
}
SCSS
$custom: #2f1674;
$custom-light: #71579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1674",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 255.957,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30682,
    "c": 0.14732,
    "h": 286.1
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#2F1674
secondary
#8DAA3C
accent
#EB3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1674

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

Preview Lab → · Contrast checker → · Palette generator →

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