#2F135C#2F135C

#2F135C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.121 H 294.7°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2F135C
RGBrgb(47, 19, 92)
HSLhsl(263, 66%, 22%)
HSVhsv(263, 79%, 36%)
CMYKcmyk(48.9%, 79.3%, 0%, 63.9%)
CIE-LABlab(14.64, 31.65, -38.31)
CIE-LCHlch(14.64, 49.69, 309.56°)
OKLaboklab(27.83% 0.0505 -0.1098)
OKLCHoklch(27.83% 0.121 294.7)
XYZxyz(3.3364, 1.8427, 10.3030)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F135C #405C13
analogous
#131B5C #2F135C #54135C
triadic
#2F135C #5C2F13 #135C2F
tetradic
#2F135C #5C131B #405C13 #135C54
square
#2F135C #5C131B #405C13 #135C54
split-complementary
#2F135C #5C5413 #1B5C13
monochromatic
#0D0519 #150929 #2F135C #491D8F #6328C1

Accessibility & contrast

On white

15.34
#2F135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F135C
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F135C#FFFFFF#000000##FFFFFF
##2F135C1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#222636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f135c;
/* rgb */ color: rgb(47, 19, 92);
/* oklch */ color: oklch(27.8% 0.121 294.7);
Tailwind
colors: {
  custom: {
    50: '#6d548b',
    500: '#2f135c',
    950: '#000000',
  },
}
SCSS
$custom: #2f135c;
$custom-light: #6d548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f135c",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 263.014,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27832,
    "c": 0.12083,
    "h": 294.7
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2F135C
secondary
#709437
accent
#E93FA8
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F135C

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

Preview Lab → · Contrast checker → · Palette generator →

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