#2A31A1#2A31A1

#2A31A1 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.177 H 272.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2A31A1
RGBrgb(42, 49, 161)
HSLhsl(236, 59%, 40%)
HSVhsv(236, 74%, 63%)
CMYKcmyk(73.9%, 69.6%, 0%, 36.9%)
CIE-LABlab(27.47, 36.10, -61.12)
CIE-LCHlch(27.47, 70.98, 300.57°)
OKLaboklab(38.96% 0.0064 -0.1768)
OKLCHoklch(38.96% 0.177 272.1)
XYZxyz(8.4840, 5.2612, 34.2797)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31A1 #A19A2A
analogous
#2A6CA1 #2A31A1 #5F2AA1
triadic
#2A31A1 #A12A31 #31A12A
tetradic
#2A31A1 #A12A6C #A19A2A #2AA15F
square
#2A31A1 #A12A6C #A19A2A #2AA15F
split-complementary
#2A31A1 #A15F2A #6CA12A
monochromatic
#111340 #1D2270 #2A31A1 #3C45CC #6D73D9

Accessibility & contrast

On white

10.23
#2A31A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A31A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31A1
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31A1#FFFFFF#000000##FFFFFF
##2A31A11.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a31a1;
/* rgb */ color: rgb(42, 49, 161);
/* oklch */ color: oklch(39.0% 0.177 272.1);
Tailwind
colors: {
  custom: {
    50: '#7669be',
    500: '#2a31a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a31a1;
$custom-light: #7669be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31a1",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 236.471,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38958,
    "c": 0.17689,
    "h": 272.1
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A31A1

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

Preview Lab → · Contrast checker → · Palette generator →

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