#2A31A3#2A31A3

#2A31A3 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.179 H 272.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2A31A3
RGBrgb(42, 49, 163)
HSLhsl(237, 59%, 40%)
HSVhsv(237, 74%, 64%)
CMYKcmyk(74.2%, 69.9%, 0%, 36.1%)
CIE-LABlab(27.66, 36.81, -62.01)
CIE-LCHlch(27.66, 72.11, 300.70°)
OKLaboklab(39.16% 0.0062 -0.1794)
OKLCHoklch(39.16% 0.179 272)
XYZxyz(8.6618, 5.3323, 35.2160)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31A3 #A39C2A
analogous
#2A6DA3 #2A31A3 #602AA3
triadic
#2A31A3 #A32A31 #31A32A
tetradic
#2A31A3 #A32A6D #A39C2A #2AA360
square
#2A31A3 #A32A6D #A39C2A #2AA360
split-complementary
#2A31A3 #A3602A #6DA32A
monochromatic
#111442 #1D2272 #2A31A3 #3D45CD #6E74DA

Accessibility & contrast

On white

10.16
#2A31A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A31A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31A3
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31A3#FFFFFF#000000##FFFFFF
##2A31A31.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a31a3;
/* rgb */ color: rgb(42, 49, 163);
/* oklch */ color: oklch(39.2% 0.179 272.0);
Tailwind
colors: {
  custom: {
    50: '#776abf',
    500: '#2a31a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a31a3;
$custom-light: #776abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31a3",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 236.529,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39158,
    "c": 0.17948,
    "h": 272
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#2A31A3
secondary
#C0BB68
accent
#D946E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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