#2A319E#2A319E

#2A319E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.173 H 272.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2A319E
RGBrgb(42, 49, 158)
HSLhsl(236, 58%, 39%)
HSVhsv(236, 73%, 62%)
CMYKcmyk(73.4%, 69%, 0%, 38%)
CIE-LABlab(27.18, 35.03, -59.77)
CIE-LCHlch(27.18, 69.28, 300.37°)
OKLaboklab(38.66% 0.0068 -0.1728)
OKLCHoklch(38.66% 0.173 272.2)
XYZxyz(8.2226, 5.1567, 32.9031)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A319E #9E972A
analogous
#2A6B9E #2A319E #5D2A9E
triadic
#2A319E #9E2A31 #319E2A
tetradic
#2A319E #9E2A6B #9E972A #2A9E5D
square
#2A319E #9E2A6B #9E972A #2A9E5D
split-complementary
#2A319E #9E5D2A #6B9E2A
monochromatic
#10133D #1D226E #2A319E #3A43CB #6B71D8

Accessibility & contrast

On white

10.34
#2A319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A319E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A319E#FFFFFF#000000##FFFFFF
##2A319E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a319e;
/* rgb */ color: rgb(42, 49, 158);
/* oklch */ color: oklch(38.7% 0.173 272.2);
Tailwind
colors: {
  custom: {
    50: '#7569bc',
    500: '#2a319e',
    950: '#000000',
  },
}
SCSS
$custom: #2a319e;
$custom-light: #7569bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a319e",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 236.379,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3866,
    "c": 0.17296,
    "h": 272.2
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#2A319E
secondary
#BEB966
accent
#D847E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A319E

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

Preview Lab → · Contrast checker → · Palette generator →

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