#2A31BD#2A31BD

#2A31BD is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.8% C 0.212 H 270.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2A31BD
RGBrgb(42, 49, 189)
HSLhsl(237, 64%, 45%)
HSVhsv(237, 78%, 74%)
CMYKcmyk(77.8%, 74.1%, 0%, 25.9%)
CIE-LABlab(30.31, 45.79, -73.18)
CIE-LCHlch(30.31, 86.33, 302.03°)
OKLaboklab(41.85% 0.0025 -0.2119)
OKLCHoklch(41.85% 0.212 270.7)
XYZxyz(11.2353, 6.3617, 48.7700)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31BD #BDB62A
analogous
#2A7ABD #2A31BD #6D2ABD
triadic
#2A31BD #BD2A31 #31BD2A
tetradic
#2A31BD #BD2A7A #BDB62A #2ABD6D
square
#2A31BD #BD2A7A #BDB62A #2ABD6D
split-complementary
#2A31BD #BD6D2A #7ABD2A
monochromatic
#141759 #1F248B #2A31BD #4D53D7 #7F84E3

Accessibility & contrast

On white

9.24
#2A31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31BD
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31BD#FFFFFF#000000##FFFFFF
##2A31BD1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0040BB
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a31bd;
/* rgb */ color: rgb(42, 49, 189);
/* oklch */ color: oklch(41.8% 0.212 270.7);
Tailwind
colors: {
  custom: {
    50: '#7d6bd2',
    500: '#2a31bd',
    950: '#000000',
  },
}
SCSS
$custom: #2a31bd;
$custom-light: #7d6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31bd",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 237.143,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41845,
    "c": 0.21195,
    "h": 270.7
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#2A31BD
secondary
#CBC778
accent
#DF41E7
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2A31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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