#2D156F#2D156F

#2D156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.142 H 286.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2D156F
RGBrgb(45, 21, 111)
HSLhsl(256, 68%, 26%)
HSVhsv(256, 81%, 44%)
CMYKcmyk(59.5%, 81.1%, 0%, 56.5%)
CIE-LABlab(16.71, 36.05, -47.46)
CIE-LCHlch(16.71, 59.60, 307.22°)
OKLaboklab(29.82% 0.0398 -0.1367)
OKLCHoklch(29.82% 0.142 286.2)
XYZxyz(4.2187, 2.2417, 15.2462)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D156F #576F15
analogous
#152A6F #2D156F #5A156F
triadic
#2D156F #6F2D15 #156F2D
tetradic
#2D156F #6F152A #576F15 #156F5A
square
#2D156F #6F152A #576F15 #156F5A
split-complementary
#2D156F #6F5A15 #2A6F15
monochromatic
#0A051A #180B3C #2D156F #421FA2 #5728D6

Accessibility & contrast

On white

14.50
#2D156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D156F
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D156F#FFFFFF#000000##FFFFFF
##2D156F1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#0D2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d156f;
/* rgb */ color: rgb(45, 21, 111);
/* oklch */ color: oklch(29.8% 0.142 286.2);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2d156f',
    950: '#000000',
  },
}
SCSS
$custom: #2d156f;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2d156f",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 256,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29818,
    "c": 0.14234,
    "h": 286.2
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#2D156F
secondary
#89A53A
accent
#EB3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D156F

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

Preview Lab → · Contrast checker → · Palette generator →

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