#2F1749#2F1749

#2F1749 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.090 H 302.9°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1749
RGBrgb(47, 23, 73)
HSLhsl(269, 52%, 19%)
HSVhsv(269, 68%, 29%)
CMYKcmyk(35.6%, 68.5%, 0%, 71.4%)
CIE-LABlab(13.82, 23.68, -26.71)
CIE-LCHlch(13.82, 35.70, 311.56°)
OKLaboklab(26.72% 0.0489 -0.0757)
OKLCHoklch(26.72% 0.09 302.9)
XYZxyz(2.6810, 1.6982, 6.4886)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1749 #314917
analogous
#171849 #2F1749 #481749
triadic
#2F1749 #492F17 #17492F
tetradic
#2F1749 #491718 #314917 #174948
square
#2F1749 #491718 #314917 #174948
split-complementary
#2F1749 #494817 #184917
monochromatic
#0F0717 #11081A #2F1749 #4D2678 #6B34A6

Accessibility & contrast

On white

15.68
#2F1749 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1749 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1749
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1749#FFFFFF#000000##FFFFFF
##2F17491.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234B
Deuteranopia (green-blind)
#092348
Tritanopia (blue-blind)
#2A212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1749;
/* rgb */ color: rgb(47, 23, 73);
/* oklch */ color: oklch(26.7% 0.090 302.9);
Tailwind
colors: {
  custom: {
    50: '#6a557c',
    500: '#2f1749',
    950: '#000000',
  },
}
SCSS
$custom: #2f1749;
$custom-light: #6a557c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1749",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 73
  },
  "hsl": {
    "h": 268.8,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26722,
    "c": 0.09013,
    "h": 302.9
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#2F1749
secondary
#5F803C
accent
#DC4C97
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #2F1749

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

Preview Lab → · Contrast checker → · Palette generator →

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