#2D184E#2D184E

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

Color values

HEX#2D184E
RGBrgb(45, 24, 78)
HSLhsl(263, 53%, 20%)
HSVhsv(263, 69%, 31%)
CMYKcmyk(42.3%, 69.2%, 0%, 69.4%)
CIE-LABlab(14.18, 24.03, -29.58)
CIE-LCHlch(14.18, 38.11, 309.09°)
OKLaboklab(27.05% 0.044 -0.0842)
OKLCHoklch(27.05% 0.095 297.6)
XYZxyz(2.7836, 1.7612, 7.3995)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D184E #394E18
analogous
#181E4E #2D184E #48184E
triadic
#2D184E #4E2D18 #184E2D
tetradic
#2D184E #4E181E #394E18 #184E48
square
#2D184E #4E181E #394E18 #184E48
split-complementary
#2D184E #4E4818 #1E4E18
monochromatic
#0D0717 #120A1F #2D184E #48267D #6335AC

Accessibility & contrast

On white

15.53
#2D184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D184E
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D184E#FFFFFF#000000##FFFFFF
##2D184E1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#252430
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d184e;
/* rgb */ color: rgb(45, 24, 78);
/* oklch */ color: oklch(27.1% 0.095 297.6);
Tailwind
colors: {
  custom: {
    50: '#695680',
    500: '#2d184e',
    950: '#000000',
  },
}
SCSS
$custom: #2d184e;
$custom-light: #695680;
$custom-dark: #000000;
JSON
{
  "hex": "#2d184e",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 263.333,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.27053,
    "c": 0.09501,
    "h": 297.6
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#2D184E
secondary
#69853D
accent
#DC4BA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D184E

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

Preview Lab → · Contrast checker → · Palette generator →

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