#31429A#31429A

#31429A is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.144 H 270.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#31429A
RGBrgb(49, 66, 154)
HSLhsl(230, 52%, 40%)
HSVhsv(230, 68%, 60%)
CMYKcmyk(68.2%, 57.1%, 0%, 39.6%)
CIE-LABlab(31.54, 23.39, -50.20)
CIE-LCHlch(31.54, 55.38, 294.98°)
OKLaboklab(41.88% 0.0016 -0.1444)
OKLCHoklch(41.88% 0.144 270.6)
XYZxyz(9.0456, 6.8816, 31.4172)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31429A #9A8931
analogous
#31769A #31429A #55319A
triadic
#31429A #9A3142 #429A31
tetradic
#31429A #9A3176 #9A8931 #319A55
square
#31429A #9A3176 #9A8931 #319A55
split-complementary
#31429A #9A5531 #769A31
monochromatic
#131A3D #222E6C #31429A #4559C4 #7382D2

Accessibility & contrast

On white

8.84
#31429A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#31429A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31429A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31429A#FFFFFF#000000##FFFFFF
##31429A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31429a;
/* rgb */ color: rgb(49, 66, 154);
/* oklch */ color: oklch(41.9% 0.144 270.6);
Tailwind
colors: {
  custom: {
    50: '#7676b8',
    500: '#31429a',
    950: '#000000',
  },
}
SCSS
$custom: #31429a;
$custom-light: #7676b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31429a",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 154
  },
  "hsl": {
    "h": 230.286,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41875,
    "c": 0.14446,
    "h": 270.6
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#31429A
secondary
#BAAE6C
accent
#C44DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #31429A

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

Preview Lab → · Contrast checker → · Palette generator →

#31429A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva