#2D123F#2D123F

#2D123F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.085 H 309.2°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2D123F
RGBrgb(45, 18, 63)
HSLhsl(276, 56%, 16%)
HSVhsv(276, 71%, 25%)
CMYKcmyk(28.6%, 71.4%, 0%, 75.3%)
CIE-LABlab(11.62, 23.36, -23.26)
CIE-LCHlch(11.62, 32.97, 315.12°)
OKLaboklab(24.82% 0.0535 -0.0656)
OKLCHoklch(24.82% 0.085 309.2)
XYZxyz(2.1955, 1.3494, 4.8465)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D123F #243F12
analogous
#16123F #2D123F #3F123A
triadic
#2D123F #3F2D12 #123F2D
tetradic
#2D123F #3F1612 #243F12 #123A3F
square
#2D123F #3F1612 #243F12 #123A3F
split-complementary
#2D123F #3A3F12 #123F16
monochromatic
#110718 #110718 #2D123F #4F206F #712D9E

Accessibility & contrast

On white

16.54
#2D123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2D123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D123F
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D123F#FFFFFF#000000##FFFFFF
##2D123F1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E40
Deuteranopia (green-blind)
#0C1F3E
Tritanopia (blue-blind)
#2A1B26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d123f;
/* rgb */ color: rgb(45, 18, 63);
/* oklch */ color: oklch(24.8% 0.085 309.2);
Tailwind
colors: {
  custom: {
    50: '#685274',
    500: '#2d123f',
    950: '#000000',
  },
}
SCSS
$custom: #2d123f;
$custom-light: #685274;
$custom-dark: #000000;
JSON
{
  "hex": "#2d123f",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 276,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24816,
    "c": 0.08466,
    "h": 309.2
  },
  "luminance": 0.01349
}

Semantic roles & 50–950 ramp

primary
#2D123F
secondary
#507835
accent
#DF4985
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D123F

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

Preview Lab → · Contrast checker → · Palette generator →

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