#2A31B7#2A31B7

#2A31B7 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.2% C 0.205 H 271.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2A31B7
RGBrgb(42, 49, 183)
HSLhsl(237, 63%, 44%)
HSVhsv(237, 77%, 72%)
CMYKcmyk(77%, 73.2%, 0%, 28.2%)
CIE-LABlab(29.68, 43.76, -70.67)
CIE-LCHlch(29.68, 83.12, 301.77°)
OKLaboklab(41.21% 0.0035 -0.2046)
OKLCHoklch(41.21% 0.205 271)
XYZxyz(10.5975, 6.1066, 45.4107)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31B7 #B7B02A
analogous
#2A78B7 #2A31B7 #6A2AB7
triadic
#2A31B7 #B72A31 #31B72A
tetradic
#2A31B7 #B72A78 #B7B02A #2AB76A
square
#2A31B7 #B72A78 #B7B02A #2AB76A
split-complementary
#2A31B7 #B76A2A #78B72A
monochromatic
#131653 #1F2485 #2A31B7 #4950D5 #7B80E1

Accessibility & contrast

On white

9.45
#2A31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31B7
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31B7#FFFFFF#000000##FFFFFF
##2A31B71.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a31b7;
/* rgb */ color: rgb(42, 49, 183);
/* oklch */ color: oklch(41.2% 0.205 271.0);
Tailwind
colors: {
  custom: {
    50: '#7c6ace',
    500: '#2a31b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a31b7;
$custom-light: #7c6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31b7",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 237.021,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41212,
    "c": 0.20465,
    "h": 271
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#2A31B7
secondary
#C9C574
accent
#DE42E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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