#2D124B#2D124B

#2D124B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.100 H 301.3°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2D124B
RGBrgb(45, 18, 75)
HSLhsl(268, 61%, 18%)
HSVhsv(268, 76%, 29%)
CMYKcmyk(40%, 76%, 0%, 70.6%)
CIE-LABlab(12.60, 26.77, -30.08)
CIE-LCHlch(12.60, 40.26, 311.67°)
OKLaboklab(25.83% 0.0521 -0.0857)
OKLCHoklch(25.83% 0.1 301.3)
XYZxyz(2.5682, 1.4985, 6.8092)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D124B #304B12
analogous
#12134B #2D124B #49124B
triadic
#2D124B #4B2D12 #124B2D
tetradic
#2D124B #4B1213 #304B12 #124B49
square
#2D124B #4B1213 #304B12 #124B49
split-complementary
#2D124B #4B4912 #134B12
monochromatic
#0F0619 #0F061A #2D124B #4B1E7C #682AAE

Accessibility & contrast

On white

16.16
#2D124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D124B
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D124B#FFFFFF#000000##FFFFFF
##2D124B1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d124b;
/* rgb */ color: rgb(45, 18, 75);
/* oklch */ color: oklch(25.8% 0.100 301.3);
Tailwind
colors: {
  custom: {
    50: '#69527e',
    500: '#2d124b',
    950: '#000000',
  },
}
SCSS
$custom: #2d124b;
$custom-light: #69527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d124b",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 268.421,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25834,
    "c": 0.10028,
    "h": 301.3
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#2D124B
secondary
#5E8435
accent
#E44398
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2D124B

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

Preview Lab → · Contrast checker → · Palette generator →

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