#2D125A#2D125A

#2D125A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.119 H 294.1°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2D125A
RGBrgb(45, 18, 90)
HSLhsl(263, 67%, 21%)
HSVhsv(263, 80%, 35%)
CMYKcmyk(50%, 80%, 0%, 64.7%)
CIE-LABlab(13.99, 31.21, -38.04)
CIE-LCHlch(13.99, 49.20, 309.37°)
OKLaboklab(27.26% 0.0487 -0.109)
OKLCHoklch(27.26% 0.119 294.1)
XYZxyz(3.1435, 1.7286, 9.8389)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D125A #3F5A12
analogous
#121B5A #2D125A #51125A
triadic
#2D125A #5A2D12 #125A2D
tetradic
#2D125A #5A121B #3F5A12 #125A51
square
#2D125A #5A121B #3F5A12 #125A51
split-complementary
#2D125A #5A5112 #1B5A12
monochromatic
#0D051A #130827 #2D125A #461C8D #6026C0

Accessibility & contrast

On white

15.60
#2D125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D125A
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D125A#FFFFFF#000000##FFFFFF
##2D125A1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#202535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d125a;
/* rgb */ color: rgb(45, 18, 90);
/* oklch */ color: oklch(27.3% 0.119 294.1);
Tailwind
colors: {
  custom: {
    50: '#6b5389',
    500: '#2d125a',
    950: '#000000',
  },
}
SCSS
$custom: #2d125a;
$custom-light: #6b5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2d125a",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 262.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27257,
    "c": 0.11942,
    "h": 294.1
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#2D125A
secondary
#709335
accent
#EA3EA9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D125A

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

Preview Lab → · Contrast checker → · Palette generator →

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