#2D0F5E#2D0F5E

#2D0F5E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.128 H 293.1°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2D0F5E
RGBrgb(45, 15, 94)
HSLhsl(263, 72%, 21%)
HSVhsv(263, 84%, 37%)
CMYKcmyk(52.1%, 84%, 0%, 63.1%)
CIE-LABlab(13.87, 33.91, -40.92)
CIE-LCHlch(13.87, 53.14, 309.65°)
OKLaboklab(27.3% 0.0502 -0.1175)
OKLCHoklch(27.3% 0.128 293.1)
XYZxyz(3.2728, 1.7076, 10.7447)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F5E #405E0F
analogous
#0F195E #2D0F5E #550F5E
triadic
#2D0F5E #5E2D0F #0F5E2D
tetradic
#2D0F5E #5E0F19 #405E0F #0F5E55
square
#2D0F5E #5E0F19 #405E0F #0F5E55
split-complementary
#2D0F5E #5E550F #195E0F
monochromatic
#0D041A #140729 #2D0F5E #461793 #6020C8

Accessibility & contrast

On white

15.65
#2D0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D0F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F5E
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F5E#FFFFFF#000000##FFFFFF
##2D0F5E1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#1D2536
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d0f5e;
/* rgb */ color: rgb(45, 15, 94);
/* oklch */ color: oklch(27.3% 0.128 293.1);
Tailwind
colors: {
  custom: {
    50: '#6c528c',
    500: '#2d0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f5e;
$custom-light: #6c528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f5e",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 262.785,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27295,
    "c": 0.12772,
    "h": 293.1
  },
  "luminance": 0.01708
}

Semantic roles & 50–950 ramp

primary
#2D0F5E
secondary
#719731
accent
#EF39AA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D0F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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