#2C135B#2C135B

#2C135B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.119 H 292.5°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2C135B
RGBrgb(44, 19, 91)
HSLhsl(261, 65%, 22%)
HSVhsv(261, 79%, 36%)
CMYKcmyk(51.6%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.15, 30.79, -38.45)
CIE-LCHlch(14.15, 49.26, 308.69°)
OKLaboklab(27.37% 0.0458 -0.1103)
OKLCHoklch(27.37% 0.119 292.5)
XYZxyz(3.1594, 1.7564, 10.0681)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C135B #425B13
analogous
#131E5B #2C135B #50135B
triadic
#2C135B #5B2C13 #135B2C
tetradic
#2C135B #5B131E #425B13 #135B50
square
#2C135B #5B131E #425B13 #135B50
split-complementary
#2C135B #5B5013 #1E5B13
monochromatic
#0C0519 #140828 #2C135B #441E8E #5D28C0

Accessibility & contrast

On white

15.54
#2C135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C135B
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C135B#FFFFFF#000000##FFFFFF
##2C135B1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#1D2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c135b;
/* rgb */ color: rgb(44, 19, 91);
/* oklch */ color: oklch(27.4% 0.119 292.5);
Tailwind
colors: {
  custom: {
    50: '#6b538a',
    500: '#2c135b',
    950: '#000000',
  },
}
SCSS
$custom: #2c135b;
$custom-light: #6b538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c135b",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 260.833,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2737,
    "c": 0.11942,
    "h": 292.5
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#2C135B
secondary
#739337
accent
#E83FAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C135B

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

Preview Lab → · Contrast checker → · Palette generator →

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