#2A31A7#2A31A7

#2A31A7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.185 H 271.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2A31A7
RGBrgb(42, 49, 167)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 65%)
CMYKcmyk(74.9%, 70.7%, 0%, 34.5%)
CIE-LABlab(28.06, 38.22, -63.78)
CIE-LCHlch(28.06, 74.35, 300.94°)
OKLaboklab(39.56% 0.0057 -0.1845)
OKLCHoklch(39.56% 0.185 271.8)
XYZxyz(9.0259, 5.4779, 37.1334)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31A7 #A7A02A
analogous
#2A6FA7 #2A31A7 #612AA7
triadic
#2A31A7 #A72A31 #31A72A
tetradic
#2A31A7 #A72A6F #A7A02A #2AA761
square
#2A31A7 #A72A6F #A7A02A #2AA761
split-complementary
#2A31A7 #A7612A #6FA72A
monochromatic
#111445 #1E2376 #2A31A7 #3F47CF #7076DB

Accessibility & contrast

On white

10.02
#2A31A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A31A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31A7
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31A7#FFFFFF#000000##FFFFFF
##2A31A71.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a31a7;
/* rgb */ color: rgb(42, 49, 167);
/* oklch */ color: oklch(39.6% 0.185 271.8);
Tailwind
colors: {
  custom: {
    50: '#786ac2',
    500: '#2a31a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a31a7;
$custom-light: #786ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31a7",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 236.64,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39561,
    "c": 0.18462,
    "h": 271.8
  },
  "luminance": 0.05479
}

Semantic roles & 50–950 ramp

primary
#2A31A7
secondary
#C2BD6B
accent
#DA45E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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