#2C0F4A#2C0F4A

#2C0F4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.103 H 301.8°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2C0F4A
RGBrgb(44, 15, 74)
HSLhsl(269, 66%, 17%)
HSVhsv(269, 80%, 29%)
CMYKcmyk(40.5%, 79.7%, 0%, 71%)
CIE-LABlab(11.77, 27.92, -30.74)
CIE-LCHlch(11.77, 41.53, 312.25°)
OKLaboklab(25.18% 0.0543 -0.0876)
OKLCHoklch(25.18% 0.103 301.8)
XYZxyz(2.4453, 1.3715, 6.6131)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F4A #2D4A0F
analogous
#0F0F4A #2C0F4A #4A0F4A
triadic
#2C0F4A #4A2C0F #0F4A2C
tetradic
#2C0F4A #4A0F0F #2D4A0F #0F4A4A
square
#2C0F4A #4A0F0F #2D4A0F #0F4A4A
split-complementary
#2C0F4A #4A4A0F #0F4A0F
monochromatic
#0F0519 #0F0519 #2C0F4A #4A197D #6924B0

Accessibility & contrast

On white

16.48
#2C0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2C0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F4A
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F4A#FFFFFF#000000##FFFFFF
##2C0F4A1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#261D2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0f4a;
/* rgb */ color: rgb(44, 15, 74);
/* oklch */ color: oklch(25.2% 0.103 301.8);
Tailwind
colors: {
  custom: {
    50: '#69507d',
    500: '#2c0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f4a;
$custom-light: #69507d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f4a",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 269.492,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25182,
    "c": 0.10307,
    "h": 301.8
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#2C0F4A
secondary
#5B8430
accent
#E93F95
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2C0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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