#2A31A9#2A31A9

#2A31A9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.187 H 271.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2A31A9
RGBrgb(42, 49, 169)
HSLhsl(237, 60%, 41%)
HSVhsv(237, 75%, 66%)
CMYKcmyk(75.1%, 71%, 0%, 33.7%)
CIE-LABlab(28.25, 38.92, -64.65)
CIE-LCHlch(28.25, 75.47, 301.05°)
OKLaboklab(39.76% 0.0054 -0.1871)
OKLCHoklch(39.76% 0.187 271.7)
XYZxyz(9.2122, 5.5525, 38.1147)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31A9 #A9A22A
analogous
#2A71A9 #2A31A9 #632AA9
triadic
#2A31A9 #A92A31 #31A92A
tetradic
#2A31A9 #A92A71 #A9A22A #2AA963
square
#2A31A9 #A92A71 #A9A22A #2AA963
split-complementary
#2A31A9 #A9632A #71A92A
monochromatic
#121547 #1E2378 #2A31A9 #4148D0 #7277DC

Accessibility & contrast

On white

9.95
#2A31A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A31A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31A9
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31A9#FFFFFF#000000##FFFFFF
##2A31A91.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a31a9;
/* rgb */ color: rgb(42, 49, 169);
/* oklch */ color: oklch(39.8% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#786ac4',
    500: '#2a31a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a31a9;
$custom-light: #786ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31a9",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 236.693,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39764,
    "c": 0.18717,
    "h": 271.7
  },
  "luminance": 0.05553
}

Semantic roles & 50–950 ramp

primary
#2A31A9
secondary
#C3BE6C
accent
#DB44E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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