#2D125F#2D125F

#2D125F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.126 H 292.1°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2D125F
RGBrgb(45, 18, 95)
HSLhsl(261, 68%, 22%)
HSVhsv(261, 81%, 37%)
CMYKcmyk(52.6%, 81.1%, 0%, 62.7%)
CIE-LABlab(14.49, 32.72, -40.57)
CIE-LCHlch(14.49, 52.12, 308.89°)
OKLaboklab(27.76% 0.0472 -0.1165)
OKLCHoklch(27.76% 0.126 292.1)
XYZxyz(3.3635, 1.8166, 10.9977)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D125F #445F12
analogous
#121D5F #2D125F #54125F
triadic
#2D125F #5F2D12 #125F2D
tetradic
#2D125F #5F121D #445F12 #125F54
square
#2D125F #5F121D #445F12 #125F54
split-complementary
#2D125F #5F5412 #1D5F12
monochromatic
#0C051A #15082C #2D125F #451C92 #5E25C6

Accessibility & contrast

On white

15.40
#2D125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D125F
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D125F#FFFFFF#000000##FFFFFF
##2D125F1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1D2738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d125f;
/* rgb */ color: rgb(45, 18, 95);
/* oklch */ color: oklch(27.8% 0.126 292.1);
Tailwind
colors: {
  custom: {
    50: '#6c538d',
    500: '#2d125f',
    950: '#000000',
  },
}
SCSS
$custom: #2d125f;
$custom-light: #6c538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d125f",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 261.039,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27762,
    "c": 0.12568,
    "h": 292.1
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#2D125F
secondary
#759736
accent
#EB3DAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D125F

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

Preview Lab → · Contrast checker → · Palette generator →

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