#2C0F56#2C0F56

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

Color values

HEX#2C0F56
RGBrgb(44, 15, 86)
HSLhsl(265, 70%, 20%)
HSVhsv(265, 83%, 34%)
CMYKcmyk(48.8%, 82.6%, 0%, 66.3%)
CIE-LABlab(12.92, 31.40, -37.10)
CIE-LCHlch(12.92, 48.61, 310.24°)
OKLaboklab(26.35% 0.0511 -0.1063)
OKLCHoklch(26.35% 0.118 295.7)
XYZxyz(2.8888, 1.5489, 8.9491)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F56 #39560F
analogous
#0F1656 #2C0F56 #500F56
triadic
#2C0F56 #562C0F #0F562C
tetradic
#2C0F56 #560F16 #39560F #0F5650
square
#2C0F56 #560F16 #39560F #0F5650
split-complementary
#2C0F56 #56500F #16560F
monochromatic
#0D051A #110622 #2C0F56 #47188A #6121BE

Accessibility & contrast

On white

16.03
#2C0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F56
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F56#FFFFFF#000000##FFFFFF
##2C0F561.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#202232
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c0f56;
/* rgb */ color: rgb(44, 15, 86);
/* oklch */ color: oklch(26.3% 0.118 295.7);
Tailwind
colors: {
  custom: {
    50: '#6a5186',
    500: '#2c0f56',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f56;
$custom-light: #6a5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f56",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 264.507,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26348,
    "c": 0.11793,
    "h": 295.7
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#2C0F56
secondary
#699031
accent
#ED3BA4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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