#2C183E#2C183E

#2C183E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.072 H 306.3°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2C183E
RGBrgb(44, 24, 62)
HSLhsl(272, 44%, 17%)
HSVhsv(272, 61%, 24%)
CMYKcmyk(29%, 61.3%, 0%, 75.7%)
CIE-LABlab(12.84, 18.93, -20.61)
CIE-LCHlch(12.84, 27.99, 312.57°)
OKLaboklab(25.65% 0.0426 -0.0579)
OKLCHoklch(25.65% 0.072 306.3)
XYZxyz(2.2347, 1.5366, 4.7354)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C183E #2A3E18
analogous
#19183E #2C183E #3E183D
triadic
#2C183E #3E2C18 #183E2C
tetradic
#2C183E #3E1918 #2A3E18 #183D3E
square
#2C183E #3E1918 #2A3E18 #183D3E
split-complementary
#2C183E #3D3E18 #183E19
monochromatic
#100916 #100916 #2C183E #4B296A #6B3A96

Accessibility & contrast

On white

16.06
#2C183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C183E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C183E
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C183E#FFFFFF#000000##FFFFFF
##2C183E1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C213F
Deuteranopia (green-blind)
#12213D
Tritanopia (blue-blind)
#291F28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c183e;
/* rgb */ color: rgb(44, 24, 62);
/* oklch */ color: oklch(25.7% 0.072 306.3);
Tailwind
colors: {
  custom: {
    50: '#665573',
    500: '#2c183e',
    950: '#000000',
  },
}
SCSS
$custom: #2c183e;
$custom-light: #665573;
$custom-dark: #000000;
JSON
{
  "hex": "#2c183e",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 271.579,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25654,
    "c": 0.07188,
    "h": 306.3
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#2C183E
secondary
#57743D
accent
#D45491
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2C183E

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

Preview Lab → · Contrast checker → · Palette generator →

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