#2F135D#2F135D

#2F135D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.122 H 294.3°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2F135D
RGBrgb(47, 19, 93)
HSLhsl(263, 66%, 22%)
HSVhsv(263, 80%, 36%)
CMYKcmyk(49.5%, 79.6%, 0%, 63.5%)
CIE-LABlab(14.74, 31.95, -38.82)
CIE-LCHlch(14.74, 50.28, 309.45°)
OKLaboklab(27.93% 0.0502 -0.1113)
OKLCHoklch(27.93% 0.122 294.3)
XYZxyz(3.3804, 1.8603, 10.5348)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F135D #415D13
analogous
#131C5D #2F135D #54135D
triadic
#2F135D #5D2F13 #135D2F
tetradic
#2F135D #5D131C #415D13 #135D54
square
#2F135D #5D131C #415D13 #135D54
split-complementary
#2F135D #5D5413 #1C5D13
monochromatic
#0D0519 #15092A #2F135D #491D90 #6228C3

Accessibility & contrast

On white

15.31
#2F135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F135D
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F135D#FFFFFF#000000##FFFFFF
##2F135D1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#222737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f135d;
/* rgb */ color: rgb(47, 19, 93);
/* oklch */ color: oklch(27.9% 0.122 294.3);
Tailwind
colors: {
  custom: {
    50: '#6d548c',
    500: '#2f135d',
    950: '#000000',
  },
}
SCSS
$custom: #2f135d;
$custom-light: #6d548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f135d",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 262.703,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2793,
    "c": 0.12209,
    "h": 294.3
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#2F135D
secondary
#719537
accent
#E93FA9
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F135D

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

Preview Lab → · Contrast checker → · Palette generator →

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