#31429E#31429E

#31429E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.150 H 270.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#31429E
RGBrgb(49, 66, 158)
HSLhsl(231, 53%, 41%)
HSVhsv(231, 69%, 62%)
CMYKcmyk(69%, 58.2%, 0%, 38%)
CIE-LABlab(31.85, 24.86, -52.12)
CIE-LCHlch(31.85, 57.75, 295.50°)
OKLaboklab(42.21% 0.0017 -0.1501)
OKLCHoklch(42.21% 0.15 270.7)
XYZxyz(9.3843, 7.0171, 33.2010)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31429E #9E8D31
analogous
#31789E #31429E #56319E
triadic
#31429E #9E3142 #429E31
tetradic
#31429E #9E3178 #9E8D31 #319E56
square
#31429E #9E3178 #9E8D31 #319E56
split-complementary
#31429E #9E5631 #789E31
monochromatic
#141B41 #232E6F #31429E #465AC6 #7584D4

Accessibility & contrast

On white

8.74
#31429E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#31429E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31429E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31429E#FFFFFF#000000##FFFFFF
##31429E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31429e;
/* rgb */ color: rgb(49, 66, 158);
/* oklch */ color: oklch(42.2% 0.150 270.7);
Tailwind
colors: {
  custom: {
    50: '#7776bb',
    500: '#31429e',
    950: '#000000',
  },
}
SCSS
$custom: #31429e;
$custom-light: #7776bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31429e",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 158
  },
  "hsl": {
    "h": 230.642,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42205,
    "c": 0.15011,
    "h": 270.7
  },
  "luminance": 0.07018
}

Semantic roles & 50–950 ramp

primary
#31429E
secondary
#BCB06E
accent
#C64CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31429E

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

Preview Lab → · Contrast checker → · Palette generator →

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