#2D186A#2D186A

#2D186A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.133 H 287.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2D186A
RGBrgb(45, 24, 106)
HSLhsl(255, 63%, 25%)
HSVhsv(255, 77%, 42%)
CMYKcmyk(57.5%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.76, 32.87, -44.12)
CIE-LCHlch(16.76, 55.02, 306.68°)
OKLaboklab(29.69% 0.0388 -0.1269)
OKLCHoklch(29.69% 0.133 287)
XYZxyz(4.0096, 2.2516, 13.8562)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D186A #556A18
analogous
#182C6A #2D186A #56186A
triadic
#2D186A #6A2D18 #186A2D
tetradic
#2D186A #6A182C #556A18 #186A56
square
#2D186A #6A182C #556A18 #186A56
split-complementary
#2D186A #6A5618 #2C6A18
monochromatic
#0B0619 #180D38 #2D186A #42239C #572FCE

Accessibility & contrast

On white

14.48
#2D186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D186A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D186A#FFFFFF#000000##FFFFFF
##2D186A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#132E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d186a;
/* rgb */ color: rgb(45, 24, 106);
/* oklch */ color: oklch(29.7% 0.133 287.0);
Tailwind
colors: {
  custom: {
    50: '#6e5795',
    500: '#2d186a',
    950: '#000000',
  },
}
SCSS
$custom: #2d186a;
$custom-light: #6e5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2d186a",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 255.366,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29694,
    "c": 0.13272,
    "h": 287
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2D186A
secondary
#87A03E
accent
#E642BC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D186A

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

Preview Lab → · Contrast checker → · Palette generator →

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