#2A319A#2A319A

#2A319A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.168 H 272.5°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#2A319A
RGBrgb(42, 49, 154)
HSLhsl(236, 57%, 38%)
HSVhsv(236, 73%, 60%)
CMYKcmyk(72.7%, 68.2%, 0%, 39.6%)
CIE-LABlab(26.80, 33.60, -57.96)
CIE-LCHlch(26.80, 66.99, 300.10°)
OKLaboklab(38.27% 0.0072 -0.1675)
OKLCHoklch(38.27% 0.168 272.5)
XYZxyz(7.8839, 5.0212, 31.1193)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A319A #9A932A
analogous
#2A699A #2A319A #5B2A9A
triadic
#2A319A #9A2A31 #319A2A
tetradic
#2A319A #9A2A69 #9A932A #2A9A5B
square
#2A319A #9A2A69 #9A932A #2A9A5B
split-complementary
#2A319A #9A5B2A #699A2A
monochromatic
#10123A #1D226A #2A319A #3841C9 #686FD6

Accessibility & contrast

On white

10.48
#2A319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A319A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A319A#FFFFFF#000000##FFFFFF
##2A319A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a319a;
/* rgb */ color: rgb(42, 49, 154);
/* oklch */ color: oklch(38.3% 0.168 272.5);
Tailwind
colors: {
  custom: {
    50: '#7469b9',
    500: '#2a319a',
    950: '#000000',
  },
}
SCSS
$custom: #2a319a;
$custom-light: #7469b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a319a",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 236.25,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.16768,
    "h": 272.5
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#2A319A
secondary
#BCB763
accent
#D747E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A319A

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

Preview Lab → · Contrast checker → · Palette generator →

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