#2C0F4D#2C0F4D

#2C0F4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.107 H 300.1°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2C0F4D
RGBrgb(44, 15, 77)
HSLhsl(268, 67%, 18%)
HSVhsv(268, 81%, 30%)
CMYKcmyk(42.9%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.04, 28.78, -32.37)
CIE-LCHlch(12.04, 43.32, 311.64°)
OKLaboklab(25.46% 0.0536 -0.0924)
OKLCHoklch(25.46% 0.107 300.1)
XYZxyz(2.5488, 1.4129, 7.1582)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0F4D #304D0F
analogous
#0F114D #2C0F4D #4B0F4D
triadic
#2C0F4D #4D2C0F #0F4D2C
tetradic
#2C0F4D #4D0F11 #304D0F #0F4D4B
square
#2C0F4D #4D0F11 #304D0F #0F4D4B
split-complementary
#2C0F4D #4D4B0F #114D0F
monochromatic
#0F051A #0F051A #2C0F4D #491980 #6723B3

Accessibility & contrast

On white

16.37
#2C0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0F4D
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0F4D#FFFFFF#000000##FFFFFF
##2C0F4D1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#241F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c0f4d;
/* rgb */ color: rgb(44, 15, 77);
/* oklch */ color: oklch(25.5% 0.107 300.1);
Tailwind
colors: {
  custom: {
    50: '#69507f',
    500: '#2c0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #2c0f4d;
$custom-light: #69507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0f4d",
  "rgb": {
    "r": 44,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 268.065,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25464,
    "c": 0.10681,
    "h": 300.1
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#2C0F4D
secondary
#5F8731
accent
#EA3E99
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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