#2A31B5#2A31B5

#2A31B5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.0% C 0.202 H 271.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2A31B5
RGBrgb(42, 49, 181)
HSLhsl(237, 62%, 44%)
HSVhsv(237, 77%, 71%)
CMYKcmyk(76.8%, 72.9%, 0%, 29%)
CIE-LABlab(29.47, 43.08, -69.82)
CIE-LCHlch(29.47, 82.04, 301.67°)
OKLaboklab(41% 0.0038 -0.2021)
OKLCHoklch(41% 0.202 271.1)
XYZxyz(10.3908, 6.0239, 44.3222)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31B5 #B5AE2A
analogous
#2A76B5 #2A31B5 #682AB5
triadic
#2A31B5 #B52A31 #31B52A
tetradic
#2A31B5 #B52A76 #B5AE2A #2AB568
square
#2A31B5 #B52A76 #B5AE2A #2AB568
split-complementary
#2A31B5 #B5682A #76B52A
monochromatic
#131652 #1E2483 #2A31B5 #484FD4 #797FE0

Accessibility & contrast

On white

9.52
#2A31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31B5
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31B5#FFFFFF#000000##FFFFFF
##2A31B51.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#003FB3
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a31b5;
/* rgb */ color: rgb(42, 49, 181);
/* oklch */ color: oklch(41.0% 0.202 271.1);
Tailwind
colors: {
  custom: {
    50: '#7b6acc',
    500: '#2a31b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a31b5;
$custom-light: #7b6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31b5",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 236.978,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41002,
    "c": 0.20218,
    "h": 271.1
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#2A31B5
secondary
#C8C473
accent
#DD42E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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