#2D0C55#2D0C55

#2D0C55 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.120 H 297.7°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2D0C55
RGBrgb(45, 12, 85)
HSLhsl(267, 75%, 19%)
HSVhsv(267, 86%, 33%)
CMYKcmyk(47.1%, 85.9%, 0%, 66.7%)
CIE-LABlab(12.46, 32.72, -37.16)
CIE-LCHlch(12.46, 49.52, 311.36°)
OKLaboklab(26.03% 0.0558 -0.1064)
OKLCHoklch(26.03% 0.12 297.7)
XYZxyz(2.8529, 1.4767, 8.7273)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C55 #34550C
analogous
#0C1055 #2D0C55 #520C55
triadic
#2D0C55 #552D0C #0C552D
tetradic
#2D0C55 #550C10 #34550C #0C5552
square
#2D0C55 #550C10 #34550C #0C5552
split-complementary
#2D0C55 #55520C #10550C
monochromatic
#0E041B #11041F #2D0C55 #49148B #661BC0

Accessibility & contrast

On white

16.21
#2D0C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D0C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0C55
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C55#FFFFFF#000000##FFFFFF
##2D0C551.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002157
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#232031
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0c55;
/* rgb */ color: rgb(45, 12, 85);
/* oklch */ color: oklch(26.0% 0.120 297.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f86',
    500: '#2d0c55',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c55;
$custom-light: #6b4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c55",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 267.123,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26029,
    "c": 0.12017,
    "h": 297.7
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#2D0C55
secondary
#63902D
accent
#F2369D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0C55

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

Preview Lab → · Contrast checker → · Palette generator →

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