#31429D#31429D

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

Color values

HEX#31429D
RGBrgb(49, 66, 157)
HSLhsl(231, 52%, 40%)
HSVhsv(231, 69%, 62%)
CMYKcmyk(68.8%, 58%, 0%, 38.4%)
CIE-LABlab(31.77, 24.49, -51.64)
CIE-LCHlch(31.77, 57.16, 295.37°)
OKLaboklab(42.12% 0.0017 -0.1487)
OKLCHoklch(42.12% 0.149 270.7)
XYZxyz(9.2986, 6.9828, 32.7495)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31429D #9D8C31
analogous
#31789D #31429D #56319D
triadic
#31429D #9D3142 #429D31
tetradic
#31429D #9D3178 #9D8C31 #319D56
square
#31429D #9D3178 #9D8C31 #319D56
split-complementary
#31429D #9D5631 #789D31
monochromatic
#141B40 #222E6E #31429D #465AC5 #7584D4

Accessibility & contrast

On white

8.76
#31429D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31429D
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31429D#FFFFFF#000000##FFFFFF
##31429D1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31429d;
/* rgb */ color: rgb(49, 66, 157);
/* oklch */ color: oklch(42.1% 0.149 270.7);
Tailwind
colors: {
  custom: {
    50: '#7776bb',
    500: '#31429d',
    950: '#000000',
  },
}
SCSS
$custom: #31429d;
$custom-light: #7776bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31429d",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 157
  },
  "hsl": {
    "h": 230.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42122,
    "c": 0.14871,
    "h": 270.7
  },
  "luminance": 0.06984
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31429D

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

Preview Lab → · Contrast checker → · Palette generator →

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