#2D125E#2D125E

#2D125E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.124 H 292.5°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2D125E
RGBrgb(45, 18, 94)
HSLhsl(261, 68%, 22%)
HSVhsv(261, 81%, 37%)
CMYKcmyk(52.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(14.39, 32.42, -40.06)
CIE-LCHlch(14.39, 51.54, 308.98°)
OKLaboklab(27.66% 0.0475 -0.115)
OKLCHoklch(27.66% 0.124 292.5)
XYZxyz(3.3183, 1.7985, 10.7598)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D125E #435E12
analogous
#121D5E #2D125E #53125E
triadic
#2D125E #5E2D12 #125E2D
tetradic
#2D125E #5E121D #435E12 #125E53
square
#2D125E #5E121D #435E12 #125E53
split-complementary
#2D125E #5E5312 #1D5E12
monochromatic
#0C051A #14082B #2D125E #461C91 #5E26C5

Accessibility & contrast

On white

15.44
#2D125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D125E
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D125E#FFFFFF#000000##FFFFFF
##2D125E1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#1D2737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d125e;
/* rgb */ color: rgb(45, 18, 94);
/* oklch */ color: oklch(27.7% 0.124 292.5);
Tailwind
colors: {
  custom: {
    50: '#6c538c',
    500: '#2d125e',
    950: '#000000',
  },
}
SCSS
$custom: #2d125e;
$custom-light: #6c538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d125e",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 261.316,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2766,
    "c": 0.12443,
    "h": 292.5
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#2D125E
secondary
#749635
accent
#EB3DAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D125E

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

Preview Lab → · Contrast checker → · Palette generator →

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