#2F1973#2F1973

#2F1973 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.143 H 285.7°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2F1973
RGBrgb(47, 25, 115)
HSLhsl(255, 64%, 27%)
HSVhsv(255, 78%, 45%)
CMYKcmyk(59.1%, 78.3%, 0%, 54.9%)
CIE-LABlab(18.09, 35.47, -47.78)
CIE-LCHlch(18.09, 59.51, 306.59°)
OKLaboklab(30.96% 0.0388 -0.1376)
OKLCHoklch(30.96% 0.143 285.7)
XYZxyz(4.6135, 2.5371, 16.4629)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1973 #5D7319
analogous
#193073 #2F1973 #5C1973
triadic
#2F1973 #732F19 #19732F
tetradic
#2F1973 #731930 #5D7319 #19735C
square
#2F1973 #731930 #5D7319 #19735C
split-complementary
#2F1973 #735C19 #307319
monochromatic
#0A0519 #1A0E41 #2F1973 #4424A5 #5B34D3

Accessibility & contrast

On white

13.93
#2F1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1973
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1973#FFFFFF#000000##FFFFFF
##2F19731.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#0E3245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1973;
/* rgb */ color: rgb(47, 25, 115);
/* oklch */ color: oklch(31.0% 0.143 285.7);
Tailwind
colors: {
  custom: {
    50: '#70589c',
    500: '#2f1973',
    950: '#000000',
  },
}
SCSS
$custom: #2f1973;
$custom-light: #70589c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1973",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 254.667,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30963,
    "c": 0.14292,
    "h": 285.7
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#2F1973
secondary
#8FA840
accent
#E741BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1973

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

Preview Lab → · Contrast checker → · Palette generator →

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