#2C0D54#2C0D54

#2C0D54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.118 H 297.0°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2C0D54
RGBrgb(44, 13, 84)
HSLhsl(266, 73%, 19%)
HSVhsv(266, 85%, 33%)
CMYKcmyk(47.6%, 84.5%, 0%, 67.1%)
CIE-LABlab(12.37, 31.80, -36.63)
CIE-LCHlch(12.37, 48.51, 310.96°)
OKLaboklab(25.91% 0.0535 -0.1049)
OKLCHoklch(25.91% 0.118 297)
XYZxyz(2.7824, 1.4634, 8.5216)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D54 #35540D
analogous
#0D1254 #2C0D54 #500D54
triadic
#2C0D54 #542C0D #0D542C
tetradic
#2C0D54 #540D12 #35540D #0D5450
square
#2C0D54 #540D12 #35540D #0D5450
split-complementary
#2C0D54 #54500D #12540D
monochromatic
#0E041A #10051F #2C0D54 #481589 #641DBE

Accessibility & contrast

On white

16.25
#2C0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C0D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0D54
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D54#FFFFFF#000000##FFFFFF
##2C0D541.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#212130
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c0d54;
/* rgb */ color: rgb(44, 13, 84);
/* oklch */ color: oklch(25.9% 0.118 297.0);
Tailwind
colors: {
  custom: {
    50: '#6a5085',
    500: '#2c0d54',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d54;
$custom-light: #6a5085;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d54",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 266.197,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25906,
    "c": 0.11778,
    "h": 297
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#2C0D54
secondary
#658F2E
accent
#F038A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0D54

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

Preview Lab → · Contrast checker → · Palette generator →

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