#2D147D#2D147D

#2D147D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.160 H 282.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2D147D
RGBrgb(45, 20, 125)
HSLhsl(254, 72%, 28%)
HSVhsv(254, 84%, 49%)
CMYKcmyk(64%, 84%, 0%, 51%)
CIE-LABlab(18.09, 40.81, -54.19)
CIE-LCHlch(18.09, 67.84, 306.98°)
OKLaboklab(31.24% 0.0358 -0.1563)
OKLCHoklch(31.24% 0.16 282.9)
XYZxyz(5.0329, 2.5385, 19.6228)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D147D #647D14
analogous
#142F7D #2D147D #61147D
triadic
#2D147D #7D2D14 #147D2D
tetradic
#2D147D #7D142F #647D14 #147D61
square
#2D147D #7D142F #647D14 #147D61
split-complementary
#2D147D #7D6114 #2F7D14
monochromatic
#09041A #1A0C48 #2D147D #401CB2 #582EDE

Accessibility & contrast

On white

13.93
#2D147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D147D
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D147D#FFFFFF#000000##FFFFFF
##2D147D1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d147d;
/* rgb */ color: rgb(45, 20, 125);
/* oklch */ color: oklch(31.2% 0.160 282.9);
Tailwind
colors: {
  custom: {
    50: '#7256a4',
    500: '#2d147d',
    950: '#000000',
  },
}
SCSS
$custom: #2d147d;
$custom-light: #7256a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d147d",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 254.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31242,
    "c": 0.16033,
    "h": 282.9
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#2D147D
secondary
#96B23A
accent
#EF39C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D147D

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

Preview Lab → · Contrast checker → · Palette generator →

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