#2D184F#2D184F

#2D184F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.096 H 297.1°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2D184F
RGBrgb(45, 24, 79)
HSLhsl(263, 53%, 20%)
HSVhsv(263, 70%, 31%)
CMYKcmyk(43%, 69.6%, 0%, 69%)
CIE-LABlab(14.26, 24.34, -30.13)
CIE-LCHlch(14.26, 38.74, 308.93°)
OKLaboklab(27.14% 0.0439 -0.0858)
OKLCHoklch(27.14% 0.096 297.1)
XYZxyz(2.8197, 1.7756, 7.5898)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D184F #3A4F18
analogous
#181E4F #2D184F #48184F
triadic
#2D184F #4F2D18 #184F2D
tetradic
#2D184F #4F181E #3A4F18 #184F48
square
#2D184F #4F181E #3A4F18 #184F48
split-complementary
#2D184F #4F4818 #1E4F18
monochromatic
#0D0717 #120A20 #2D184F #48267E #6235AD

Accessibility & contrast

On white

15.50
#2D184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D184F
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D184F#FFFFFF#000000##FFFFFF
##2D184F1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#252431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d184f;
/* rgb */ color: rgb(45, 24, 79);
/* oklch */ color: oklch(27.1% 0.096 297.1);
Tailwind
colors: {
  custom: {
    50: '#695681',
    500: '#2d184f',
    950: '#000000',
  },
}
SCSS
$custom: #2d184f;
$custom-light: #695681;
$custom-dark: #000000;
JSON
{
  "hex": "#2d184f",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 262.909,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27138,
    "c": 0.09641,
    "h": 297.1
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#2D184F
secondary
#6A863D
accent
#DD4BA5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D184F

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

Preview Lab → · Contrast checker → · Palette generator →

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