#2D148F#2D148F

#2D148F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.181 H 279.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2D148F
RGBrgb(45, 20, 143)
HSLhsl(252, 75%, 32%)
HSVhsv(252, 86%, 56%)
CMYKcmyk(68.5%, 86%, 0%, 43.9%)
CIE-LABlab(20.21, 46.17, -62.03)
CIE-LCHlch(20.21, 77.32, 306.66°)
OKLaboklab(33.32% 0.0294 -0.1791)
OKLCHoklch(33.32% 0.181 279.3)
XYZxyz(6.2887, 3.0408, 26.2368)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D148F #768F14
analogous
#14398F #2D148F #6B148F
triadic
#2D148F #8F2D14 #148F2D
tetradic
#2D148F #8F1439 #768F14 #148F6B
square
#2D148F #8F1439 #768F14 #148F6B
split-complementary
#2D148F #8F6B14 #398F14
monochromatic
#0B0524 #1C0C59 #2D148F #3E1CC5 #5C3AE3

Accessibility & contrast

On white

13.06
#2D148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D148F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D148F#FFFFFF#000000##FFFFFF
##2D148F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d148f;
/* rgb */ color: rgb(45, 20, 143);
/* oklch */ color: oklch(33.3% 0.181 279.3);
Tailwind
colors: {
  custom: {
    50: '#7658b1',
    500: '#2d148f',
    950: '#000000',
  },
}
SCSS
$custom: #2d148f;
$custom-light: #7658b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d148f",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 252.195,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.18149,
    "h": 279.3
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#2D148F
secondary
#A7C33C
accent
#F236CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D148F

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

Preview Lab → · Contrast checker → · Palette generator →

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