#2A31A4#2A31A4

#2A31A4 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.181 H 271.9°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A31A4
RGBrgb(42, 49, 164)
HSLhsl(237, 59%, 40%)
HSVhsv(237, 74%, 64%)
CMYKcmyk(74.4%, 70.1%, 0%, 35.7%)
CIE-LABlab(27.76, 37.16, -62.45)
CIE-LCHlch(27.76, 72.67, 300.76°)
OKLaboklab(39.26% 0.0061 -0.1807)
OKLCHoklch(39.26% 0.181 271.9)
XYZxyz(8.7517, 5.3683, 35.6897)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31A4 #A49D2A
analogous
#2A6EA4 #2A31A4 #602AA4
triadic
#2A31A4 #A42A31 #31A42A
tetradic
#2A31A4 #A42A6E #A49D2A #2AA460
square
#2A31A4 #A42A6E #A49D2A #2AA460
split-complementary
#2A31A4 #A4602A #6EA42A
monochromatic
#111443 #1E2273 #2A31A4 #3E46CD #6E75DA

Accessibility & contrast

On white

10.13
#2A31A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A31A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31A4
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31A4#FFFFFF#000000##FFFFFF
##2A31A41.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a31a4;
/* rgb */ color: rgb(42, 49, 164);
/* oklch */ color: oklch(39.3% 0.181 271.9);
Tailwind
colors: {
  custom: {
    50: '#776ac0',
    500: '#2a31a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a31a4;
$custom-light: #776ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31a4",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 236.557,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39258,
    "c": 0.18077,
    "h": 271.9
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#2A31A4
secondary
#C1BC69
accent
#D945E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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