#2F115F#2F115F

#2F115F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.127 H 294.0°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2F115F
RGBrgb(47, 17, 95)
HSLhsl(263, 70%, 22%)
HSVhsv(263, 82%, 37%)
CMYKcmyk(50.5%, 82.1%, 0%, 62.7%)
CIE-LABlab(14.58, 33.56, -40.42)
CIE-LCHlch(14.58, 52.54, 309.70°)
OKLaboklab(27.88% 0.0515 -0.1159)
OKLCHoklch(27.88% 0.127 294)
XYZxyz(3.4377, 1.8314, 10.9966)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F115F #415F11
analogous
#111A5F #2F115F #56115F
triadic
#2F115F #5F2F11 #115F2F
tetradic
#2F115F #5F111A #415F11 #115F56
square
#2F115F #5F111A #415F11 #115F56
split-complementary
#2F115F #5F5611 #1A5F11
monochromatic
#0D051A #15082B #2F115F #491A93 #6224C7

Accessibility & contrast

On white

15.37
#2F115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F115F
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F115F#FFFFFF#000000##FFFFFF
##2F115F1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#202737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f115f;
/* rgb */ color: rgb(47, 17, 95);
/* oklch */ color: oklch(27.9% 0.127 294.0);
Tailwind
colors: {
  custom: {
    50: '#6e538d',
    500: '#2f115f',
    950: '#000000',
  },
}
SCSS
$custom: #2f115f;
$custom-light: #6e538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f115f",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 263.077,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27879,
    "c": 0.12688,
    "h": 294
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#2F115F
secondary
#719834
accent
#EC3BA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F115F

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

Preview Lab → · Contrast checker → · Palette generator →

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