#2D1988#2D1988

#2D1988 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.169 H 280.0°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2D1988
RGBrgb(45, 25, 136)
HSLhsl(251, 69%, 32%)
HSVhsv(251, 82%, 53%)
CMYKcmyk(66.9%, 81.6%, 0%, 46.7%)
CIE-LABlab(20.16, 41.78, -57.72)
CIE-LCHlch(20.16, 71.26, 305.90°)
OKLaboklab(33.05% 0.0294 -0.1666)
OKLCHoklch(33.05% 0.169 280)
XYZxyz(5.8723, 3.0303, 23.5632)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1988 #748819
analogous
#193D88 #2D1988 #651988
triadic
#2D1988 #882D19 #19882D
tetradic
#2D1988 #88193D #748819 #198865
square
#2D1988 #88193D #748819 #198865
split-complementary
#2D1988 #886519 #3D8819
monochromatic
#0B0621 #1C0F54 #2D1988 #3E23BC #5C40DC

Accessibility & contrast

On white

13.07
#2D1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1988
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1988#FFFFFF#000000##FFFFFF
##2D19881.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1988;
/* rgb */ color: rgb(45, 25, 136);
/* oklch */ color: oklch(33.0% 0.169 280.0);
Tailwind
colors: {
  custom: {
    50: '#745aac',
    500: '#2d1988',
    950: '#000000',
  },
}
SCSS
$custom: #2d1988;
$custom-light: #745aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1988",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 250.811,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33047,
    "c": 0.16921,
    "h": 280
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#2D1988
secondary
#A5BB41
accent
#EC3CCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1988

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

Preview Lab → · Contrast checker → · Palette generator →

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