#2D0F4D#2D0F4D

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

Color values

HEX#2D0F4D
RGBrgb(45, 15, 77)
HSLhsl(269, 67%, 18%)
HSVhsv(269, 81%, 30%)
CMYKcmyk(41.6%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.19, 28.99, -32.12)
CIE-LCHlch(12.19, 43.27, 312.07°)
OKLaboklab(25.6% 0.0552 -0.0916)
OKLCHoklch(25.6% 0.107 301.1)
XYZxyz(2.5922, 1.4353, 7.1602)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F4D #2F4D0F
analogous
#0F104D #2D0F4D #4C0F4D
triadic
#2D0F4D #4D2D0F #0F4D2D
tetradic
#2D0F4D #4D0F10 #2F4D0F #0F4D4C
square
#2D0F4D #4D0F10 #2F4D0F #0F4D4C
split-complementary
#2D0F4D #4D4C0F #104D0F
monochromatic
#0F051A #0F051A #2D0F4D #4B1980 #6923B3

Accessibility & contrast

On white

16.32
#2D0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0F4D
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F4D#FFFFFF#000000##FFFFFF
##2D0F4D1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#261F2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0f4d;
/* rgb */ color: rgb(45, 15, 77);
/* oklch */ color: oklch(25.6% 0.107 301.1);
Tailwind
colors: {
  custom: {
    50: '#6a507f',
    500: '#2d0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f4d;
$custom-light: #6a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f4d",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 269.032,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25601,
    "c": 0.10701,
    "h": 301.1
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#2D0F4D
secondary
#5D8731
accent
#EA3E97
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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