#2D186C#2D186C

#2D186C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.135 H 286.4°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#2D186C
RGBrgb(45, 24, 108)
HSLhsl(255, 64%, 26%)
HSVhsv(255, 78%, 42%)
CMYKcmyk(58.3%, 77.8%, 0%, 57.6%)
CIE-LABlab(16.96, 33.50, -45.10)
CIE-LCHlch(16.96, 56.18, 306.61°)
OKLaboklab(29.9% 0.0383 -0.1298)
OKLCHoklch(29.9% 0.135 286.4)
XYZxyz(4.1148, 2.2936, 14.4103)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D186C #576C18
analogous
#182D6C #2D186C #57186C
triadic
#2D186C #6C2D18 #186C2D
tetradic
#2D186C #6C182D #576C18 #186C57
square
#2D186C #6C182D #576C18 #186C57
split-complementary
#2D186C #6C5718 #2D6C18
monochromatic
#0A0619 #180D3A #2D186C #42239E #572ED0

Accessibility & contrast

On white

14.40
#2D186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D186C
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D186C#FFFFFF#000000##FFFFFF
##2D186C1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#112F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d186c;
/* rgb */ color: rgb(45, 24, 108);
/* oklch */ color: oklch(29.9% 0.135 286.4);
Tailwind
colors: {
  custom: {
    50: '#6e5797',
    500: '#2d186c',
    950: '#000000',
  },
}
SCSS
$custom: #2d186c;
$custom-light: #6e5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2d186c",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 255,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29899,
    "c": 0.1353,
    "h": 286.4
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#2D186C
secondary
#89A23E
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D186C

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

Preview Lab → · Contrast checker → · Palette generator →

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