#2D123B#2D123B

#2D123B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.079 H 312.4°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#2D123B
RGBrgb(45, 18, 59)
HSLhsl(280, 53%, 15%)
HSVhsv(280, 69%, 23%)
CMYKcmyk(23.7%, 69.5%, 0%, 76.9%)
CIE-LABlab(11.32, 22.27, -20.89)
CIE-LCHlch(11.32, 30.54, 316.83°)
OKLaboklab(24.51% 0.0536 -0.0587)
OKLCHoklch(24.51% 0.079 312.4)
XYZxyz(2.0878, 1.3063, 4.2790)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D123B #203B12
analogous
#18123B #2D123B #3B1235
triadic
#2D123B #3B2D12 #123B2D
tetradic
#2D123B #3B1812 #203B12 #12353B
square
#2D123B #3B1812 #203B12 #12353B
split-complementary
#2D123B #353B12 #123B18
monochromatic
#120717 #120717 #2D123B #51206A #752F99

Accessibility & contrast

On white

16.65
#2D123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D123B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D123B
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D123B#FFFFFF#000000##FFFFFF
##2D123B1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3C
Deuteranopia (green-blind)
#0F1F3A
Tritanopia (blue-blind)
#2B1A24
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d123b;
/* rgb */ color: rgb(45, 18, 59);
/* oklch */ color: oklch(24.5% 0.079 312.4);
Tailwind
colors: {
  custom: {
    50: '#675171',
    500: '#2d123b',
    950: '#000000',
  },
}
SCSS
$custom: #2d123b;
$custom-light: #675171;
$custom-dark: #000000;
JSON
{
  "hex": "#2d123b",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 279.512,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24505,
    "c": 0.07945,
    "h": 312.4
  },
  "luminance": 0.01306
}

Semantic roles & 50–950 ramp

primary
#2D123B
secondary
#4A7435
accent
#DD4B7D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2D123B

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

Preview Lab → · Contrast checker → · Palette generator →

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