#31429F#31429F

#31429F is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.152 H 270.7°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#31429F
RGBrgb(49, 66, 159)
HSLhsl(231, 53%, 41%)
HSVhsv(231, 69%, 62%)
CMYKcmyk(69.2%, 58.5%, 0%, 37.6%)
CIE-LABlab(31.92, 25.23, -52.60)
CIE-LCHlch(31.92, 58.34, 295.63°)
OKLaboklab(42.29% 0.0017 -0.1515)
OKLCHoklch(42.29% 0.152 270.7)
XYZxyz(9.4707, 7.0517, 33.6562)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31429F #9F8E31
analogous
#31799F #31429F #57319F
triadic
#31429F #9F3142 #429F31
tetradic
#31429F #9F3179 #9F8E31 #319F57
square
#31429F #9F3179 #9F8E31 #319F57
split-complementary
#31429F #9F5731 #799F31
monochromatic
#141B41 #232F70 #31429F #475BC6 #7684D5

Accessibility & contrast

On white

8.71
#31429F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#31429F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31429F
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31429F#FFFFFF#000000##FFFFFF
##31429F1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31429f;
/* rgb */ color: rgb(49, 66, 159);
/* oklch */ color: oklch(42.3% 0.152 270.7);
Tailwind
colors: {
  custom: {
    50: '#7776bc',
    500: '#31429f',
    950: '#000000',
  },
}
SCSS
$custom: #31429f;
$custom-light: #7776bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31429f",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 159
  },
  "hsl": {
    "h": 230.727,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42288,
    "c": 0.15152,
    "h": 270.7
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31429F

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

Preview Lab → · Contrast checker → · Palette generator →

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