#2C0F4C#2C0F4C

#2C0F4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.106 H 300.6°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2C0F4C
RGBrgb(44, 15, 76)
HSLhsl(269, 67%, 18%)
HSVhsv(269, 80%, 30%)
CMYKcmyk(42.1%, 80.3%, 0%, 70.2%)
CIE-LABlab(11.95, 28.49, -31.83)
CIE-LCHlch(11.95, 42.72, 311.83°)
OKLaboklab(25.37% 0.0538 -0.0908)
OKLCHoklch(25.37% 0.106 300.6)
XYZxyz(2.5137, 1.3989, 6.9737)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F4C #2F4C0F
analogous
#0F104C #2C0F4C #4A0F4C
triadic
#2C0F4C #4C2C0F #0F4C2C
tetradic
#2C0F4C #4C0F10 #2F4C0F #0F4C4A
square
#2C0F4C #4C0F10 #2F4C0F #0F4C4A
split-complementary
#2C0F4C #4C4A0F #104C0F
monochromatic
#0F051A #0F051A #2C0F4C #4A197F #6723B2

Accessibility & contrast

On white

16.41
#2C0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2C0F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0F4C
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F4C#FFFFFF#000000##FFFFFF
##2C0F4C1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#251E2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0f4c;
/* rgb */ color: rgb(44, 15, 76);
/* oklch */ color: oklch(25.4% 0.106 300.6);
Tailwind
colors: {
  custom: {
    50: '#69507f',
    500: '#2c0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f4c;
$custom-light: #69507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f4c",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 268.525,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25369,
    "c": 0.10557,
    "h": 300.6
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#2C0F4C
secondary
#5E8631
accent
#EA3E98
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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