#2D125D#2D125D

#2D125D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.123 H 292.9°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2D125D
RGBrgb(45, 18, 93)
HSLhsl(262, 68%, 22%)
HSVhsv(262, 81%, 36%)
CMYKcmyk(51.6%, 80.6%, 0%, 63.5%)
CIE-LABlab(14.29, 32.11, -39.56)
CIE-LCHlch(14.29, 50.95, 309.07°)
OKLaboklab(27.56% 0.0478 -0.1135)
OKLCHoklch(27.56% 0.123 292.9)
XYZxyz(3.2737, 1.7807, 10.5250)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D125D #425D12
analogous
#121D5D #2D125D #53125D
triadic
#2D125D #5D2D12 #125D2D
tetradic
#2D125D #5D121D #425D12 #125D53
square
#2D125D #5D121D #425D12 #125D53
split-complementary
#2D125D #5D5312 #1D5D12
monochromatic
#0C051A #14082A #2D125D #461C90 #5F26C4

Accessibility & contrast

On white

15.48
#2D125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D125D
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D125D#FFFFFF#000000##FFFFFF
##2D125D1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#1E2637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d125d;
/* rgb */ color: rgb(45, 18, 93);
/* oklch */ color: oklch(27.6% 0.123 292.9);
Tailwind
colors: {
  custom: {
    50: '#6c538c',
    500: '#2d125d',
    950: '#000000',
  },
}
SCSS
$custom: #2d125d;
$custom-light: #6c538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d125d",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 261.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27558,
    "c": 0.12318,
    "h": 292.9
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#2D125D
secondary
#739535
accent
#EA3DAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D125D

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

Preview Lab → · Contrast checker → · Palette generator →

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