#2D186D#2D186D

#2D186D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.137 H 286.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2D186D
RGBrgb(45, 24, 109)
HSLhsl(255, 64%, 26%)
HSVhsv(255, 78%, 43%)
CMYKcmyk(58.7%, 78%, 0%, 57.3%)
CIE-LABlab(17.06, 33.82, -45.58)
CIE-LCHlch(17.06, 56.76, 306.58°)
OKLaboklab(30% 0.038 -0.1312)
OKLCHoklch(30% 0.137 286.2)
XYZxyz(4.1683, 2.3150, 14.6922)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D186D #586D18
analogous
#182D6D #2D186D #57186D
triadic
#2D186D #6D2D18 #186D2D
tetradic
#2D186D #6D182D #586D18 #186D57
square
#2D186D #6D182D #586D18 #186D57
split-complementary
#2D186D #6D5718 #2D6D18
monochromatic
#0A0619 #180D3B #2D186D #42239F #572ED1

Accessibility & contrast

On white

14.35
#2D186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D186D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D186D#FFFFFF#000000##FFFFFF
##2D186D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#0F3041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d186d;
/* rgb */ color: rgb(45, 24, 109);
/* oklch */ color: oklch(30.0% 0.137 286.2);
Tailwind
colors: {
  custom: {
    50: '#6e5798',
    500: '#2d186d',
    950: '#000000',
  },
}
SCSS
$custom: #2d186d;
$custom-light: #6e5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2d186d",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 254.824,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30002,
    "c": 0.13658,
    "h": 286.2
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#2D186D
secondary
#8AA33E
accent
#E741BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D186D

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

Preview Lab → · Contrast checker → · Palette generator →

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