#2D183F#2D183F

#2D183F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.074 H 306.8°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2D183F
RGBrgb(45, 24, 63)
HSLhsl(272, 45%, 17%)
HSVhsv(272, 62%, 25%)
CMYKcmyk(28.6%, 61.9%, 0%, 75.3%)
CIE-LABlab(13.05, 19.54, -20.98)
CIE-LCHlch(13.05, 28.67, 312.97°)
OKLaboklab(25.86% 0.0442 -0.059)
OKLCHoklch(25.86% 0.074 306.8)
XYZxyz(2.3058, 1.5701, 4.8832)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D183F #2A3F18
analogous
#1A183F #2D183F #3F183E
triadic
#2D183F #3F2D18 #183F2D
tetradic
#2D183F #3F1A18 #2A3F18 #183E3F
square
#2D183F #3F1A18 #2A3F18 #183E3F
split-complementary
#2D183F #3E3F18 #183F1A
monochromatic
#100816 #100816 #2D183F #4D296B #6C3A98

Accessibility & contrast

On white

15.98
#2D183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D183F
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D183F#FFFFFF#000000##FFFFFF
##2D183F1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2140
Deuteranopia (green-blind)
#12223E
Tritanopia (blue-blind)
#2A1F28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d183f;
/* rgb */ color: rgb(45, 24, 63);
/* oklch */ color: oklch(25.9% 0.074 306.8);
Tailwind
colors: {
  custom: {
    50: '#675574',
    500: '#2d183f',
    950: '#000000',
  },
}
SCSS
$custom: #2d183f;
$custom-light: #675574;
$custom-dark: #000000;
JSON
{
  "hex": "#2d183f",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 272.308,
    "s": 44.828,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25861,
    "c": 0.07368,
    "h": 306.8
  },
  "luminance": 0.0157
}

Semantic roles & 50–950 ramp

primary
#2D183F
secondary
#57753D
accent
#D5538F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D183F

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

Preview Lab → · Contrast checker → · Palette generator →

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