#2A319B#2A319B

#2A319B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.169 H 272.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2A319B
RGBrgb(42, 49, 155)
HSLhsl(236, 57%, 39%)
HSVhsv(236, 73%, 61%)
CMYKcmyk(72.9%, 68.4%, 0%, 39.2%)
CIE-LABlab(26.89, 33.96, -58.41)
CIE-LCHlch(26.89, 67.56, 300.17°)
OKLaboklab(38.37% 0.0071 -0.1689)
OKLCHoklch(38.37% 0.169 272.4)
XYZxyz(7.9676, 5.0546, 31.5597)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A319B #9B942A
analogous
#2A699B #2A319B #5B2A9B
triadic
#2A319B #9B2A31 #319B2A
tetradic
#2A319B #9B2A69 #9B942A #2A9B5B
square
#2A319B #9B2A69 #9B942A #2A9B5B
split-complementary
#2A319B #9B5B2A #699B2A
monochromatic
#10133B #1D226B #2A319B #3942C9 #6970D6

Accessibility & contrast

On white

10.44
#2A319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A319B
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A319B#FFFFFF#000000##FFFFFF
##2A319B1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a319b;
/* rgb */ color: rgb(42, 49, 155);
/* oklch */ color: oklch(38.4% 0.169 272.4);
Tailwind
colors: {
  custom: {
    50: '#7569b9',
    500: '#2a319b',
    950: '#000000',
  },
}
SCSS
$custom: #2a319b;
$custom-light: #7569b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a319b",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 236.283,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38365,
    "c": 0.16901,
    "h": 272.4
  },
  "luminance": 0.05055
}

Semantic roles & 50–950 ramp

primary
#2A319B
secondary
#BDB764
accent
#D747E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A319B

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

Preview Lab → · Contrast checker → · Palette generator →

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