#2C123E#2C123E

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

Color values

HEX#2C123E
RGBrgb(44, 18, 62)
HSLhsl(275, 55%, 16%)
HSVhsv(275, 71%, 24%)
CMYKcmyk(29%, 71%, 0%, 75.7%)
CIE-LABlab(11.39, 22.80, -22.93)
CIE-LCHlch(11.39, 32.34, 314.83°)
OKLaboklab(24.59% 0.0519 -0.0647)
OKLCHoklch(24.59% 0.083 308.8)
XYZxyz(2.1243, 1.3159, 4.6986)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C123E #243E12
analogous
#16123E #2C123E #3E123A
triadic
#2C123E #3E2C12 #123E2C
tetradic
#2C123E #3E1612 #243E12 #123A3E
square
#2C123E #3E1612 #243E12 #123A3E
split-complementary
#2C123E #3A3E12 #123E16
monochromatic
#110718 #110718 #2C123E #4E206D #6F2E9D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C123E#FFFFFF#000000##FFFFFF
##2C123E1.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)
#011D3F
Deuteranopia (green-blind)
#0B1F3D
Tritanopia (blue-blind)
#291B26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c123e;
/* rgb */ color: rgb(44, 18, 62);
/* oklch */ color: oklch(24.6% 0.083 308.8);
Tailwind
colors: {
  custom: {
    50: '#675173',
    500: '#2c123e',
    950: '#000000',
  },
}
SCSS
$custom: #2c123e;
$custom-light: #675173;
$custom-dark: #000000;
JSON
{
  "hex": "#2c123e",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 62
  },
  "hsl": {
    "h": 275.455,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24592,
    "c": 0.08296,
    "h": 308.8
  },
  "luminance": 0.01316
}

Semantic roles & 50–950 ramp

primary
#2C123E
secondary
#507735
accent
#DE4986
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C123E

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

Preview Lab → · Contrast checker → · Palette generator →

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