#2D123C#2D123C

#2D123C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.081 H 311.5°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#2D123C
RGBrgb(45, 18, 60)
HSLhsl(279, 54%, 15%)
HSVhsv(279, 70%, 24%)
CMYKcmyk(25%, 70%, 0%, 76.5%)
CIE-LABlab(11.39, 22.54, -21.49)
CIE-LCHlch(11.39, 31.15, 316.37°)
OKLaboklab(24.58% 0.0536 -0.0604)
OKLCHoklch(24.58% 0.081 311.5)
XYZxyz(2.1140, 1.3168, 4.4169)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D123C #213C12
analogous
#18123C #2D123C #3C1236
triadic
#2D123C #3C2D12 #123C2D
tetradic
#2D123C #3C1812 #213C12 #12363C
square
#2D123C #3C1812 #213C12 #12363C
split-complementary
#2D123C #363C12 #123C18
monochromatic
#120718 #120718 #2D123C #50206B #742E9A

Accessibility & contrast

On white

16.62
#2D123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D123C
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D123C#FFFFFF#000000##FFFFFF
##2D123C1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041D3D
Deuteranopia (green-blind)
#0E1F3B
Tritanopia (blue-blind)
#2B1A24
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d123c;
/* rgb */ color: rgb(45, 18, 60);
/* oklch */ color: oklch(24.6% 0.081 311.5);
Tailwind
colors: {
  custom: {
    50: '#685172',
    500: '#2d123c',
    950: '#000000',
  },
}
SCSS
$custom: #2d123c;
$custom-light: #685172;
$custom-dark: #000000;
JSON
{
  "hex": "#2d123c",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 278.571,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24582,
    "c": 0.08075,
    "h": 311.5
  },
  "luminance": 0.01317
}

Semantic roles & 50–950 ramp

primary
#2D123C
secondary
#4C7535
accent
#DD4B7F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D123C

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

Preview Lab → · Contrast checker → · Palette generator →

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