#31429B#31429B

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

Color values

HEX#31429B
RGBrgb(49, 66, 155)
HSLhsl(230, 52%, 40%)
HSVhsv(230, 68%, 61%)
CMYKcmyk(68.4%, 57.4%, 0%, 39.2%)
CIE-LABlab(31.61, 23.75, -50.68)
CIE-LCHlch(31.61, 55.97, 295.11°)
OKLaboklab(41.96% 0.0016 -0.1459)
OKLCHoklch(41.96% 0.146 270.6)
XYZxyz(9.1292, 6.9151, 31.8576)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31429B #9B8A31
analogous
#31779B #31429B #55319B
triadic
#31429B #9B3142 #429B31
tetradic
#31429B #9B3177 #9B8A31 #319B55
square
#31429B #9B3177 #9B8A31 #319B55
split-complementary
#31429B #9B5531 #779B31
monochromatic
#141A3E #222E6D #31429B #4559C4 #7383D3

Accessibility & contrast

On white

8.81
#31429B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31429B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31429B#FFFFFF#000000##FFFFFF
##31429B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31429b;
/* rgb */ color: rgb(49, 66, 155);
/* oklch */ color: oklch(42.0% 0.146 270.6);
Tailwind
colors: {
  custom: {
    50: '#7676b9',
    500: '#31429b',
    950: '#000000',
  },
}
SCSS
$custom: #31429b;
$custom-light: #7676b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31429b",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 155
  },
  "hsl": {
    "h": 230.377,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.41957,
    "c": 0.14588,
    "h": 270.6
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#31429B
secondary
#BBAE6D
accent
#C44CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #31429B

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

Preview Lab → · Contrast checker → · Palette generator →

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