#31429C#31429C

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

Color values

HEX#31429C
RGBrgb(49, 66, 156)
HSLhsl(230, 52%, 40%)
HSVhsv(230, 69%, 61%)
CMYKcmyk(68.6%, 57.7%, 0%, 38.8%)
CIE-LABlab(31.69, 24.12, -51.16)
CIE-LCHlch(31.69, 56.57, 295.24°)
OKLaboklab(42.04% 0.0017 -0.1473)
OKLCHoklch(42.04% 0.147 270.6)
XYZxyz(9.2136, 6.9488, 32.3017)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31429C #9C8B31
analogous
#31789C #31429C #55319C
triadic
#31429C #9C3142 #429C31
tetradic
#31429C #9C3178 #9C8B31 #319C55
square
#31429C #9C3178 #9C8B31 #319C55
split-complementary
#31429C #9C5531 #789C31
monochromatic
#141B3F #222E6D #31429C #455AC5 #7483D3

Accessibility & contrast

On white

8.79
#31429C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#31429C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31429C
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31429C#FFFFFF#000000##FFFFFF
##31429C1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31429c;
/* rgb */ color: rgb(49, 66, 156);
/* oklch */ color: oklch(42.0% 0.147 270.6);
Tailwind
colors: {
  custom: {
    50: '#7676ba',
    500: '#31429c',
    950: '#000000',
  },
}
SCSS
$custom: #31429c;
$custom-light: #7676ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31429c",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 156
  },
  "hsl": {
    "h": 230.467,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42039,
    "c": 0.1473,
    "h": 270.6
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#31429C
secondary
#BBAF6D
accent
#C54CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31429C

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

Preview Lab → · Contrast checker → · Palette generator →

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