#2A31C4#2A31C4

#2A31C4 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.220 H 270.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2A31C4
RGBrgb(42, 49, 196)
HSLhsl(237, 65%, 47%)
HSVhsv(237, 79%, 77%)
CMYKcmyk(78.6%, 75%, 0%, 23.1%)
CIE-LABlab(31.05, 48.12, -76.07)
CIE-LCHlch(31.05, 90.02, 302.32°)
OKLaboklab(42.59% 0.0014 -0.2203)
OKLCHoklch(42.59% 0.22 270.4)
XYZxyz(12.0136, 6.6730, 52.8687)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31C4 #C4BD2A
analogous
#2A7EC4 #2A31C4 #702AC4
triadic
#2A31C4 #C42A31 #31C42A
tetradic
#2A31C4 #C42A7E #C4BD2A #2AC470
square
#2A31C4 #C42A7E #C4BD2A #2AC470
split-complementary
#2A31C4 #C4702A #7EC42A
monochromatic
#14185F #1F2492 #2A31C4 #5158DA #8488E5

Accessibility & contrast

On white

8.99
#2A31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31C4
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31C4#FFFFFF#000000##FFFFFF
##2A31C41.008.992.338.99
#FFFFFF8.991.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0041C1
Tritanopia (blue-blind)
#005D78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a31c4;
/* rgb */ color: rgb(42, 49, 196);
/* oklch */ color: oklch(42.6% 0.220 270.4);
Tailwind
colors: {
  custom: {
    50: '#7f6bd7',
    500: '#2a31c4',
    950: '#000000',
  },
}
SCSS
$custom: #2a31c4;
$custom-light: #7f6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31c4",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 237.273,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42593,
    "c": 0.22033,
    "h": 270.4
  },
  "luminance": 0.06674
}

Semantic roles & 50–950 ramp

primary
#2A31C4
secondary
#CECA7C
accent
#E040E8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2A31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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