#2A319C#2A319C

#2A319C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.170 H 272.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2A319C
RGBrgb(42, 49, 156)
HSLhsl(236, 58%, 39%)
HSVhsv(236, 73%, 61%)
CMYKcmyk(73.1%, 68.6%, 0%, 38.8%)
CIE-LABlab(26.99, 34.31, -58.86)
CIE-LCHlch(26.99, 68.14, 300.24°)
OKLaboklab(38.46% 0.007 -0.1702)
OKLCHoklch(38.46% 0.17 272.3)
XYZxyz(8.0519, 5.0884, 32.0038)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A319C #9C952A
analogous
#2A6A9C #2A319C #5C2A9C
triadic
#2A319C #9C2A31 #319C2A
tetradic
#2A319C #9C2A6A #9C952A #2A9C5C
square
#2A319C #9C2A6A #9C952A #2A9C5C
split-complementary
#2A319C #9C5C2A #6A9C2A
monochromatic
#10133C #1D226C #2A319C #3942CA #6A70D7

Accessibility & contrast

On white

10.41
#2A319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A319C
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A319C#FFFFFF#000000##FFFFFF
##2A319C1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a319c;
/* rgb */ color: rgb(42, 49, 156);
/* oklch */ color: oklch(38.5% 0.170 272.3);
Tailwind
colors: {
  custom: {
    50: '#7569ba',
    500: '#2a319c',
    950: '#000000',
  },
}
SCSS
$custom: #2a319c;
$custom-light: #7569ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a319c",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 236.316,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38463,
    "c": 0.17033,
    "h": 272.3
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A319C

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

Preview Lab → · Contrast checker → · Palette generator →

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