#2D0F4C#2D0F4C

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

Color values

HEX#2D0F4C
RGBrgb(45, 15, 76)
HSLhsl(270, 67%, 18%)
HSVhsv(270, 80%, 30%)
CMYKcmyk(40.8%, 80.3%, 0%, 70.2%)
CIE-LABlab(12.10, 28.71, -31.58)
CIE-LCHlch(12.10, 42.68, 312.27°)
OKLaboklab(25.51% 0.0555 -0.0901)
OKLCHoklch(25.51% 0.106 301.6)
XYZxyz(2.5572, 1.4213, 6.9757)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F4C #2E4C0F
analogous
#0F104C #2D0F4C #4B0F4C
triadic
#2D0F4C #4C2D0F #0F4C2D
tetradic
#2D0F4C #4C0F10 #2E4C0F #0F4C4B
square
#2D0F4C #4C0F10 #2E4C0F #0F4C4B
split-complementary
#2D0F4C #4C4B0F #104C0F
monochromatic
#0F051A #0F051A #2D0F4C #4B197F #6A23B2

Accessibility & contrast

On white

16.35
#2D0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0F4C
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F4C#FFFFFF#000000##FFFFFF
##2D0F4C1.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#261E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0f4c;
/* rgb */ color: rgb(45, 15, 76);
/* oklch */ color: oklch(25.5% 0.106 301.6);
Tailwind
colors: {
  custom: {
    50: '#6a507f',
    500: '#2d0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f4c;
$custom-light: #6a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f4c",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 269.508,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25507,
    "c": 0.10577,
    "h": 301.6
  },
  "luminance": 0.01421
}

Semantic roles & 50–950 ramp

primary
#2D0F4C
secondary
#5C8631
accent
#EA3E95
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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