#2D123E#2D123E

#2D123E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.083 H 309.9°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#2D123E
RGBrgb(45, 18, 62)
HSLhsl(277, 55%, 16%)
HSVhsv(277, 71%, 24%)
CMYKcmyk(27.4%, 71%, 0%, 75.7%)
CIE-LABlab(11.54, 23.09, -22.68)
CIE-LCHlch(11.54, 32.36, 315.51°)
OKLaboklab(24.74% 0.0535 -0.0639)
OKLCHoklch(24.74% 0.083 309.9)
XYZxyz(2.1678, 1.3383, 4.7006)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D123E #233E12
analogous
#17123E #2D123E #3E1239
triadic
#2D123E #3E2D12 #123E2D
tetradic
#2D123E #3E1712 #233E12 #12393E
square
#2D123E #3E1712 #233E12 #12393E
split-complementary
#2D123E #393E12 #123E17
monochromatic
#110718 #110718 #2D123E #4F206D #722E9D

Accessibility & contrast

On white

16.57
#2D123E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D123E
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D123E#FFFFFF#000000##FFFFFF
##2D123E1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021D3F
Deuteranopia (green-blind)
#0D1F3D
Tritanopia (blue-blind)
#2B1B26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d123e;
/* rgb */ color: rgb(45, 18, 62);
/* oklch */ color: oklch(24.7% 0.083 309.9);
Tailwind
colors: {
  custom: {
    50: '#685173',
    500: '#2d123e',
    950: '#000000',
  },
}
SCSS
$custom: #2d123e;
$custom-light: #685173;
$custom-dark: #000000;
JSON
{
  "hex": "#2d123e",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 276.818,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24737,
    "c": 0.08335,
    "h": 309.9
  },
  "luminance": 0.01338
}

Semantic roles & 50–950 ramp

primary
#2D123E
secondary
#4E7735
accent
#DE4983
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D123E

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

Preview Lab → · Contrast checker → · Palette generator →

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