#2D148A#2D148A

#2D148A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.176 H 280.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2D148A
RGBrgb(45, 20, 138)
HSLhsl(253, 75%, 31%)
HSVhsv(253, 86%, 54%)
CMYKcmyk(67.4%, 85.5%, 0%, 45.9%)
CIE-LABlab(19.61, 44.69, -59.90)
CIE-LCHlch(19.61, 74.73, 306.73°)
OKLaboklab(32.73% 0.0312 -0.1729)
OKLCHoklch(32.73% 0.176 280.2)
XYZxyz(5.9183, 2.8927, 24.2863)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D148A #718A14
analogous
#14368A #2D148A #68148A
triadic
#2D148A #8A2D14 #148A2D
tetradic
#2D148A #8A1436 #718A14 #148A68
square
#2D148A #8A1436 #718A14 #148A68
split-complementary
#2D148A #8A6814 #368A14
monochromatic
#0A051F #1C0C55 #2D148A #3E1CBF #5B36E2

Accessibility & contrast

On white

13.30
#2D148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D148A
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D148A#FFFFFF#000000##FFFFFF
##2D148A1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d148a;
/* rgb */ color: rgb(45, 20, 138);
/* oklch */ color: oklch(32.7% 0.176 280.2);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2d148a',
    950: '#000000',
  },
}
SCSS
$custom: #2d148a;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d148a",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 252.712,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.17568,
    "h": 280.2
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#2D148A
secondary
#A3BE3C
accent
#F136CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2D148A

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

Preview Lab → · Contrast checker → · Palette generator →

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