#2F1365#2F1365

#2F1365 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.132 H 291.3°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2F1365
RGBrgb(47, 19, 101)
HSLhsl(260, 68%, 24%)
HSVhsv(260, 81%, 40%)
CMYKcmyk(53.5%, 81.2%, 0%, 60.4%)
CIE-LABlab(15.54, 34.33, -42.83)
CIE-LCHlch(15.54, 54.89, 308.72°)
OKLaboklab(28.74% 0.0479 -0.123)
OKLCHoklch(28.74% 0.132 291.3)
XYZxyz(3.7535, 2.0095, 12.4995)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1365 #496513
analogous
#132065 #2F1365 #581365
triadic
#2F1365 #652F13 #13652F
tetradic
#2F1365 #651320 #496513 #136558
square
#2F1365 #651320 #496513 #136558
split-complementary
#2F1365 #655813 #206513
monochromatic
#0C051A #170931 #2F1365 #471D99 #5F26CC

Accessibility & contrast

On white

14.98
#2F1365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1365 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1365
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1365#FFFFFF#000000##FFFFFF
##2F13651.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#1C2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1365;
/* rgb */ color: rgb(47, 19, 101);
/* oklch */ color: oklch(28.7% 0.132 291.3);
Tailwind
colors: {
  custom: {
    50: '#6e5492',
    500: '#2f1365',
    950: '#000000',
  },
}
SCSS
$custom: #2f1365;
$custom-light: #6e5492;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1365",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 260.488,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28737,
    "c": 0.13201,
    "h": 291.3
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#2F1365
secondary
#7A9D37
accent
#EB3DB0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1365

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

Preview Lab → · Contrast checker → · Palette generator →

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