#2A31AC#2A31AC

#2A31AC is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.191 H 271.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2A31AC
RGBrgb(42, 49, 172)
HSLhsl(237, 61%, 42%)
HSVhsv(237, 76%, 67%)
CMYKcmyk(75.6%, 71.5%, 0%, 32.5%)
CIE-LABlab(28.55, 39.97, -65.96)
CIE-LCHlch(28.55, 77.13, 301.22°)
OKLaboklab(40.07% 0.005 -0.1909)
OKLCHoklch(40.07% 0.191 271.5)
XYZxyz(9.4970, 5.6664, 39.6149)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31AC #ACA52A
analogous
#2A72AC #2A31AC #642AAC
triadic
#2A31AC #AC2A31 #31AC2A
tetradic
#2A31AC #AC2A72 #ACA52A #2AAC64
square
#2A31AC #AC2A72 #ACA52A #2AAC64
split-complementary
#2A31AC #AC642A #72AC2A
monochromatic
#12154A #1E237B #2A31AC #424AD1 #7379DD

Accessibility & contrast

On white

9.84
#2A31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31AC
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31AC#FFFFFF#000000##FFFFFF
##2A31AC1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#003DAA
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a31ac;
/* rgb */ color: rgb(42, 49, 172);
/* oklch */ color: oklch(40.1% 0.191 271.5);
Tailwind
colors: {
  custom: {
    50: '#796ac6',
    500: '#2a31ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a31ac;
$custom-light: #796ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31ac",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 236.769,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.19097,
    "h": 271.5
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#2A31AC
secondary
#C4C06D
accent
#DB44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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