#2A117D#2A117D

#2A117D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 281.5°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#2A117D
RGBrgb(42, 17, 125)
HSLhsl(254, 76%, 28%)
HSVhsv(254, 86%, 49%)
CMYKcmyk(66.4%, 86.4%, 0%, 51%)
CIE-LABlab(17.34, 41.84, -55.45)
CIE-LCHlch(17.34, 69.46, 307.04°)
OKLaboklab(30.65% 0.0324 -0.16)
OKLCHoklch(30.65% 0.163 281.5)
XYZxyz(4.8558, 2.3734, 19.6003)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A117D #647D11
analogous
#112E7D #2A117D #60117D
triadic
#2A117D #7D2A11 #117D2A
tetradic
#2A117D #7D112E #647D11 #117D60
square
#2A117D #7D112E #647D11 #117D60
split-complementary
#2A117D #7D6011 #2E7D11
monochromatic
#09041B #180A47 #2A117D #3C18B3 #5227E2

Accessibility & contrast

On white

14.24
#2A117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A117D
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A117D#FFFFFF#000000##FFFFFF
##2A117D1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a117d;
/* rgb */ color: rgb(42, 17, 125);
/* oklch */ color: oklch(30.6% 0.163 281.5);
Tailwind
colors: {
  custom: {
    50: '#7155a4',
    500: '#2a117d',
    950: '#000000',
  },
}
SCSS
$custom: #2a117d;
$custom-light: #7155a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a117d",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 253.889,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30649,
    "c": 0.16324,
    "h": 281.5
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#2A117D
secondary
#96B337
accent
#F335C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A117D

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

Preview Lab → · Contrast checker → · Palette generator →

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