#2D147F#2D147F

#2D147F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 282.4°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2D147F
RGBrgb(45, 20, 127)
HSLhsl(254, 73%, 29%)
HSVhsv(254, 84%, 50%)
CMYKcmyk(64.6%, 84.3%, 0%, 50.2%)
CIE-LABlab(18.32, 41.41, -55.09)
CIE-LCHlch(18.32, 68.91, 306.93°)
OKLaboklab(31.47% 0.0351 -0.1589)
OKLCHoklch(31.47% 0.163 282.4)
XYZxyz(5.1619, 2.5901, 20.3025)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D147F #667F14
analogous
#14317F #2D147F #63147F
triadic
#2D147F #7F2D14 #147F2D
tetradic
#2D147F #7F1431 #667F14 #147F63
square
#2D147F #7F1431 #667F14 #147F63
split-complementary
#2D147F #7F6314 #317F14
monochromatic
#09041A #1A0C4A #2D147F #401CB4 #582FDE

Accessibility & contrast

On white

13.83
#2D147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D147F
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D147F#FFFFFF#000000##FFFFFF
##2D147F1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d147f;
/* rgb */ color: rgb(45, 20, 127);
/* oklch */ color: oklch(31.5% 0.163 282.4);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2d147f',
    950: '#000000',
  },
}
SCSS
$custom: #2d147f;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d147f",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 254.019,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31468,
    "c": 0.16271,
    "h": 282.4
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#2D147F
secondary
#98B43B
accent
#EF38C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D147F

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

Preview Lab → · Contrast checker → · Palette generator →

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