#31428E#31428E

#31428E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.127 H 270.4°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#31428E
RGBrgb(49, 66, 142)
HSLhsl(229, 49%, 37%)
HSVhsv(229, 65%, 56%)
CMYKcmyk(65.5%, 53.5%, 0%, 44.3%)
CIE-LABlab(30.64, 18.94, -44.31)
CIE-LCHlch(30.64, 48.19, 293.14°)
OKLaboklab(40.92% 0.0008 -0.1271)
OKLCHoklch(40.92% 0.127 270.4)
XYZxyz(8.0957, 6.5017, 26.4143)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31428E #8E7D31
analogous
#31718E #31428E #4E318E
triadic
#31428E #8E3142 #428E31
tetradic
#31428E #8E3171 #8E7D31 #318E4E
square
#31428E #8E3171 #8E7D31 #318E4E
split-complementary
#31428E #8E4E31 #718E31
monochromatic
#121833 #212D61 #31428E #4157BB #6D7ECD

Accessibility & contrast

On white

9.13
#31428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#31428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31428E
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31428E#FFFFFF#000000##FFFFFF
##31428E1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31428e;
/* rgb */ color: rgb(49, 66, 142);
/* oklch */ color: oklch(40.9% 0.127 270.4);
Tailwind
colors: {
  custom: {
    50: '#7476b0',
    500: '#31428e',
    950: '#000000',
  },
}
SCSS
$custom: #31428e;
$custom-light: #7476b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31428e",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 229.032,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.12713,
    "h": 270.4
  },
  "luminance": 0.06502
}

Semantic roles & 50–950 ramp

primary
#31428E
secondary
#B4A667
accent
#BF50D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31428E

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

Preview Lab → · Contrast checker → · Palette generator →

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