#2F115C#2F115C

#2F115C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.123 H 295.2°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#2F115C
RGBrgb(47, 17, 92)
HSLhsl(264, 69%, 21%)
HSVhsv(264, 82%, 36%)
CMYKcmyk(48.9%, 81.5%, 0%, 63.9%)
CIE-LABlab(14.28, 32.68, -38.91)
CIE-LCHlch(14.28, 50.81, 310.03°)
OKLaboklab(27.58% 0.0524 -0.1115)
OKLCHoklch(27.58% 0.123 295.2)
XYZxyz(3.3040, 1.7779, 10.2922)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F115C #3E5C11
analogous
#11195C #2F115C #55115C
triadic
#2F115C #5C2F11 #115C2F
tetradic
#2F115C #5C1119 #3E5C11 #115C55
square
#2F115C #5C1119 #3E5C11 #115C55
split-complementary
#2F115C #5C5511 #195C11
monochromatic
#0D051A #150728 #2F115C #491B90 #6424C3

Accessibility & contrast

On white

15.49
#2F115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F115C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F115C#FFFFFF#000000##FFFFFF
##2F115C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#222536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f115c;
/* rgb */ color: rgb(47, 17, 92);
/* oklch */ color: oklch(27.6% 0.123 295.2);
Tailwind
colors: {
  custom: {
    50: '#6d538b',
    500: '#2f115c',
    950: '#000000',
  },
}
SCSS
$custom: #2f115c;
$custom-light: #6d538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f115c",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 264,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27576,
    "c": 0.12323,
    "h": 295.2
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#2F115C
secondary
#6E9534
accent
#EC3CA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F115C

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

Preview Lab → · Contrast checker → · Palette generator →

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