#2A319F#2A319F

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

Color values

HEX#2A319F
RGBrgb(42, 49, 159)
HSLhsl(236, 58%, 39%)
HSVhsv(236, 74%, 62%)
CMYKcmyk(73.6%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.27, 35.39, -60.22)
CIE-LCHlch(27.27, 69.85, 300.44°)
OKLaboklab(38.76% 0.0067 -0.1741)
OKLCHoklch(38.76% 0.174 272.2)
XYZxyz(8.3091, 5.1912, 33.3583)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A319F #9F982A
analogous
#2A6C9F #2A319F #5E2A9F
triadic
#2A319F #9F2A31 #319F2A
tetradic
#2A319F #9F2A6C #9F982A #2A9F5E
square
#2A319F #9F2A6C #9F982A #2A9F5E
split-complementary
#2A319F #9F5E2A #6C9F2A
monochromatic
#10133E #1D226F #2A319F #3B44CB #6B72D8

Accessibility & contrast

On white

10.30
#2A319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A319F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A319F#FFFFFF#000000##FFFFFF
##2A319F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a319f;
/* rgb */ color: rgb(42, 49, 159);
/* oklch */ color: oklch(38.8% 0.174 272.2);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2a319f',
    950: '#000000',
  },
}
SCSS
$custom: #2a319f;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a319f",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 236.41,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.17428,
    "h": 272.2
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#2A319F
secondary
#BFB966
accent
#D846E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A319F

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

Preview Lab → · Contrast checker → · Palette generator →

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