#2A31AE#2A31AE

#2A31AE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.193 H 271.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2A31AE
RGBrgb(42, 49, 174)
HSLhsl(237, 61%, 42%)
HSVhsv(237, 76%, 68%)
CMYKcmyk(75.9%, 71.8%, 0%, 31.8%)
CIE-LABlab(28.76, 40.67, -66.83)
CIE-LCHlch(28.76, 78.23, 301.32°)
OKLaboklab(40.28% 0.0048 -0.1934)
OKLCHoklch(40.28% 0.193 271.4)
XYZxyz(9.6906, 5.7438, 40.6341)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31AE #AEA72A
analogous
#2A73AE #2A31AE #652AAE
triadic
#2A31AE #AE2A31 #31AE2A
tetradic
#2A31AE #AE2A73 #AEA72A #2AAE65
square
#2A31AE #AE2A73 #AEA72A #2AAE65
split-complementary
#2A31AE #AE652A #73AE2A
monochromatic
#12154B #1E237D #2A31AE #434BD2 #757ADE

Accessibility & contrast

On white

9.77
#2A31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31AE
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31AE#FFFFFF#000000##FFFFFF
##2A31AE1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a31ae;
/* rgb */ color: rgb(42, 49, 174);
/* oklch */ color: oklch(40.3% 0.193 271.4);
Tailwind
colors: {
  custom: {
    50: '#796ac7',
    500: '#2a31ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a31ae;
$custom-light: #796ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31ae",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 236.818,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40276,
    "c": 0.19349,
    "h": 271.4
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#2A31AE
secondary
#C5C16F
accent
#DC44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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