#2D119F#2D119F

#2D119F is a dark, highly saturated violet. Relative luminance 0.035; OKLCH L 35.0% C 0.202 H 277.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2D119F
RGBrgb(45, 17, 159)
HSLhsl(252, 81%, 35%)
HSVhsv(252, 89%, 62%)
CMYKcmyk(71.7%, 89.3%, 0%, 37.6%)
CIE-LABlab(21.80, 51.88, -69.25)
CIE-LCHlch(21.80, 86.53, 306.84°)
OKLaboklab(34.97% 0.0247 -0.2)
OKLCHoklch(34.97% 0.202 277)
XYZxyz(7.5386, 3.4613, 33.0650)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D119F #839F11
analogous
#113C9F #2D119F #74119F
triadic
#2D119F #9F2D11 #119F2D
tetradic
#2D119F #9F113C #839F11 #119F74
square
#2D119F #9F113C #839F11 #119F74
split-complementary
#2D119F #9F7411 #3C9F11
monochromatic
#0E0530 #1D0B68 #2D119F #3D17D6 #6240EB

Accessibility & contrast

On white

12.41
#2D119F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D119F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D119F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D119F#FFFFFF#000000##FFFFFF
##2D119F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002E9D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d119f;
/* rgb */ color: rgb(45, 17, 159);
/* oklch */ color: oklch(35.0% 0.202 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a58bd',
    500: '#2d119f',
    950: '#000000',
  },
}
SCSS
$custom: #2d119f;
$custom-light: #7a58bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d119f",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 159
  },
  "hsl": {
    "h": 251.831,
    "s": 80.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34972,
    "c": 0.2015,
    "h": 277
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#2D119F
secondary
#AFCA42
accent
#F731D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D119F

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

Preview Lab → · Contrast checker → · Palette generator →

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