#2D156E#2D156E

#2D156E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.141 H 286.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2D156E
RGBrgb(45, 21, 110)
HSLhsl(256, 68%, 26%)
HSVhsv(256, 81%, 43%)
CMYKcmyk(59.1%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.60, 35.74, -46.99)
CIE-LCHlch(16.60, 59.04, 307.26°)
OKLaboklab(29.71% 0.0401 -0.1353)
OKLCHoklch(29.71% 0.141 286.5)
XYZxyz(4.1640, 2.2198, 14.9579)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D156E #566E15
analogous
#15296E #2D156E #59156E
triadic
#2D156E #6E2D15 #156E2D
tetradic
#2D156E #6E1529 #566E15 #156E59
square
#2D156E #6E1529 #566E15 #156E59
split-complementary
#2D156E #6E5915 #296E15
monochromatic
#0B051A #180B3B #2D156E #421FA1 #5729D5

Accessibility & contrast

On white

14.54
#2D156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D156E
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D156E#FFFFFF#000000##FFFFFF
##2D156E1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#0E2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d156e;
/* rgb */ color: rgb(45, 21, 110);
/* oklch */ color: oklch(29.7% 0.141 286.5);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2d156e',
    950: '#000000',
  },
}
SCSS
$custom: #2d156e;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2d156e",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 256.18,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29711,
    "c": 0.1411,
    "h": 286.5
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2D156E
secondary
#88A43A
accent
#EB3DBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D156E

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

Preview Lab → · Contrast checker → · Palette generator →

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