#2D136D#2D136D

#2D136D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.142 H 287.2°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2D136D
RGBrgb(45, 19, 109)
HSLhsl(257, 70%, 25%)
HSVhsv(257, 83%, 43%)
CMYKcmyk(58.7%, 82.6%, 0%, 57.3%)
CIE-LABlab(16.14, 36.45, -47.09)
CIE-LCHlch(16.14, 59.55, 307.74°)
OKLaboklab(29.36% 0.0419 -0.1356)
OKLCHoklch(29.36% 0.142 287.2)
XYZxyz(4.0746, 2.1275, 14.6610)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D136D #536D13
analogous
#13266D #2D136D #5A136D
triadic
#2D136D #6D2D13 #136D2D
tetradic
#2D136D #6D1326 #536D13 #136D5A
square
#2D136D #6D1326 #536D13 #136D5A
split-complementary
#2D136D #6D5A13 #266D13
monochromatic
#0B051A #170A39 #2D136D #431CA1 #5825D5

Accessibility & contrast

On white

14.73
#2D136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D136D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D136D
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D136D#FFFFFF#000000##FFFFFF
##2D136D1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#102D40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d136d;
/* rgb */ color: rgb(45, 19, 109);
/* oklch */ color: oklch(29.4% 0.142 287.2);
Tailwind
colors: {
  custom: {
    50: '#6f5598',
    500: '#2d136d',
    950: '#000000',
  },
}
SCSS
$custom: #2d136d;
$custom-light: #6f5598;
$custom-dark: #000000;
JSON
{
  "hex": "#2d136d",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 257.333,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29359,
    "c": 0.14189,
    "h": 287.2
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#2D136D
secondary
#85A438
accent
#ED3BBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D136D

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

Preview Lab → · Contrast checker → · Palette generator →

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