#2D148D#2D148D

#2D148D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.179 H 279.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2D148D
RGBrgb(45, 20, 141)
HSLhsl(252, 75%, 32%)
HSVhsv(252, 86%, 55%)
CMYKcmyk(68.1%, 85.8%, 0%, 44.7%)
CIE-LABlab(19.97, 45.58, -61.18)
CIE-LCHlch(19.97, 76.29, 306.68°)
OKLaboklab(33.08% 0.0301 -0.1766)
OKLCHoklch(33.08% 0.179 279.7)
XYZxyz(6.1385, 2.9808, 25.4460)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D148D #748D14
analogous
#14388D #2D148D #6A148D
triadic
#2D148D #8D2D14 #148D2D
tetradic
#2D148D #8D1438 #748D14 #148D6A
square
#2D148D #8D1438 #748D14 #148D6A
split-complementary
#2D148D #8D6A14 #388D14
monochromatic
#0B0522 #1C0C57 #2D148D #3E1CC3 #5C39E3

Accessibility & contrast

On white

13.16
#2D148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D148D
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D148D#FFFFFF#000000##FFFFFF
##2D148D1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d148d;
/* rgb */ color: rgb(45, 20, 141);
/* oklch */ color: oklch(33.1% 0.179 279.7);
Tailwind
colors: {
  custom: {
    50: '#7558b0',
    500: '#2d148d',
    950: '#000000',
  },
}
SCSS
$custom: #2d148d;
$custom-light: #7558b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d148d",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 252.397,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33081,
    "c": 0.17917,
    "h": 279.7
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#2D148D
secondary
#A5C13C
accent
#F236CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D148D

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

Preview Lab → · Contrast checker → · Palette generator →

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