#2C0F4F#2C0F4F

#2C0F4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.109 H 299.0°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2C0F4F
RGBrgb(44, 15, 79)
HSLhsl(267, 68%, 18%)
HSVhsv(267, 81%, 31%)
CMYKcmyk(44.3%, 81%, 0%, 69%)
CIE-LABlab(12.23, 29.36, -33.44)
CIE-LCHlch(12.23, 44.50, 311.28°)
OKLaboklab(25.66% 0.0531 -0.0956)
OKLCHoklch(25.66% 0.109 299)
XYZxyz(2.6205, 1.4416, 7.5358)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F4F #324F0F
analogous
#0F124F #2C0F4F #4C0F4F
triadic
#2C0F4F #4F2C0F #0F4F2C
tetradic
#2C0F4F #4F0F12 #324F0F #0F4F4C
square
#2C0F4F #4F0F12 #324F0F #0F4F4C
split-complementary
#2C0F4F #4F4C0F #124F0F
monochromatic
#0E051A #0F051C #2C0F4F #491982 #6523B6

Accessibility & contrast

On white

16.30
#2C0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0F4F
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F4F#FFFFFF#000000##FFFFFF
##2C0F4F1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#241F2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c0f4f;
/* rgb */ color: rgb(44, 15, 79);
/* oklch */ color: oklch(25.7% 0.109 299.0);
Tailwind
colors: {
  custom: {
    50: '#695081',
    500: '#2c0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f4f;
$custom-light: #695081;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f4f",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 267.188,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25656,
    "c": 0.1093,
    "h": 299
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#2C0F4F
secondary
#618931
accent
#EB3D9C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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