#2D0F4F#2D0F4F

#2D0F4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.109 H 300.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2D0F4F
RGBrgb(45, 15, 79)
HSLhsl(268, 68%, 18%)
HSVhsv(268, 81%, 31%)
CMYKcmyk(43%, 81%, 0%, 69%)
CIE-LABlab(12.38, 29.56, -33.20)
CIE-LCHlch(12.38, 44.45, 311.69°)
OKLaboklab(25.79% 0.0547 -0.0948)
OKLCHoklch(25.79% 0.109 300)
XYZxyz(2.6639, 1.4640, 7.5379)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F4F #314F0F
analogous
#0F114F #2D0F4F #4D0F4F
triadic
#2D0F4F #4F2D0F #0F4F2D
tetradic
#2D0F4F #4F0F11 #314F0F #0F4F4D
square
#2D0F4F #4F0F11 #314F0F #0F4F4D
split-complementary
#2D0F4F #4F4D0F #114F0F
monochromatic
#0F051A #10051C #2D0F4F #4A1982 #6823B6

Accessibility & contrast

On white

16.24
#2D0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0F4F
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F4F#FFFFFF#000000##FFFFFF
##2D0F4F1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#251F2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0f4f;
/* rgb */ color: rgb(45, 15, 79);
/* oklch */ color: oklch(25.8% 0.109 300.0);
Tailwind
colors: {
  custom: {
    50: '#6a5181',
    500: '#2d0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f4f;
$custom-light: #6a5181;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f4f",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 268.125,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2579,
    "c": 0.10946,
    "h": 300
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#2D0F4F
secondary
#608931
accent
#EB3D99
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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