#2A31B1#2A31B1

#2A31B1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.197 H 271.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A31B1
RGBrgb(42, 49, 177)
HSLhsl(237, 62%, 43%)
HSVhsv(237, 76%, 69%)
CMYKcmyk(76.3%, 72.3%, 0%, 30.6%)
CIE-LABlab(29.06, 41.70, -68.12)
CIE-LCHlch(29.06, 79.87, 301.48°)
OKLaboklab(40.59% 0.0043 -0.1972)
OKLCHoklch(40.59% 0.197 271.3)
XYZxyz(9.9863, 5.8621, 42.1916)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31B1 #B1AA2A
analogous
#2A74B1 #2A31B1 #662AB1
triadic
#2A31B1 #B12A31 #31B12A
tetradic
#2A31B1 #B12A74 #B1AA2A #2AB166
square
#2A31B1 #B12A74 #B1AA2A #2AB166
split-complementary
#2A31B1 #B1662A #74B12A
monochromatic
#13164E #1E2380 #2A31B1 #454DD3 #777CDF

Accessibility & contrast

On white

9.67
#2A31B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A31B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31B1
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31B1#FFFFFF#000000##FFFFFF
##2A31B11.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a31b1;
/* rgb */ color: rgb(42, 49, 177);
/* oklch */ color: oklch(40.6% 0.197 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a6aca',
    500: '#2a31b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a31b1;
$custom-light: #7a6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31b1",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 236.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40586,
    "c": 0.19724,
    "h": 271.3
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#2A31B1
secondary
#C6C270
accent
#DC43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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