#2A31A6#2A31A6

#2A31A6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.183 H 271.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2A31A6
RGBrgb(42, 49, 166)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 65%)
CMYKcmyk(74.7%, 70.5%, 0%, 34.9%)
CIE-LABlab(27.96, 37.87, -63.34)
CIE-LCHlch(27.96, 73.79, 300.88°)
OKLaboklab(39.46% 0.0058 -0.1832)
OKLCHoklch(39.46% 0.183 271.8)
XYZxyz(8.9338, 5.4411, 36.6484)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31A6 #A69F2A
analogous
#2A6FA6 #2A31A6 #612AA6
triadic
#2A31A6 #A62A31 #31A62A
tetradic
#2A31A6 #A62A6F #A69F2A #2AA661
square
#2A31A6 #A62A6F #A69F2A #2AA661
split-complementary
#2A31A6 #A6612A #6FA62A
monochromatic
#111444 #1E2375 #2A31A6 #3F47CE #7076DB

Accessibility & contrast

On white

10.06
#2A31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A31A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31A6
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31A6#FFFFFF#000000##FFFFFF
##2A31A61.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a31a6;
/* rgb */ color: rgb(42, 49, 166);
/* oklch */ color: oklch(39.5% 0.183 271.8);
Tailwind
colors: {
  custom: {
    50: '#776ac2',
    500: '#2a31a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a31a6;
$custom-light: #776ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31a6",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 236.613,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39459,
    "c": 0.18334,
    "h": 271.8
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#2A31A6
secondary
#C2BD6A
accent
#DA45E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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