#2D124A#2D124A

#2D124A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.099 H 301.9°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2D124A
RGBrgb(45, 18, 74)
HSLhsl(269, 61%, 18%)
HSVhsv(269, 76%, 29%)
CMYKcmyk(39.2%, 75.7%, 0%, 71%)
CIE-LABlab(12.51, 26.48, -29.53)
CIE-LCHlch(12.51, 39.66, 311.88°)
OKLaboklab(25.75% 0.0523 -0.084)
OKLCHoklch(25.75% 0.099 301.9)
XYZxyz(2.5342, 1.4849, 6.6303)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D124A #2F4A12
analogous
#12134A #2D124A #49124A
triadic
#2D124A #4A2D12 #124A2D
tetradic
#2D124A #4A1213 #2F4A12 #124A49
square
#2D124A #4A1213 #2F4A12 #124A49
split-complementary
#2D124A #4A4912 #134A12
monochromatic
#0F0619 #0F0619 #2D124A #4B1E7B #692AAC

Accessibility & contrast

On white

16.19
#2D124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D124A
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D124A#FFFFFF#000000##FFFFFF
##2D124A1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#271F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d124a;
/* rgb */ color: rgb(45, 18, 74);
/* oklch */ color: oklch(25.7% 0.099 301.9);
Tailwind
colors: {
  custom: {
    50: '#69527d',
    500: '#2d124a',
    950: '#000000',
  },
}
SCSS
$custom: #2d124a;
$custom-light: #69527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d124a",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 268.929,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25745,
    "c": 0.09898,
    "h": 301.9
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#2D124A
secondary
#5D8335
accent
#E44497
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D124A

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

Preview Lab → · Contrast checker → · Palette generator →

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