#31428F#31428F

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

Color values

HEX#31428F
RGBrgb(49, 66, 143)
HSLhsl(229, 49%, 38%)
HSVhsv(229, 66%, 56%)
CMYKcmyk(65.7%, 53.8%, 0%, 43.9%)
CIE-LABlab(30.72, 19.31, -44.81)
CIE-LCHlch(30.72, 48.80, 293.31°)
OKLaboklab(41% 0.0009 -0.1286)
OKLCHoklch(41% 0.129 270.4)
XYZxyz(8.1711, 6.5318, 26.8114)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31428F #8F7E31
analogous
#31718F #31428F #4F318F
triadic
#31428F #8F3142 #428F31
tetradic
#31428F #8F3171 #8F7E31 #318F4F
square
#31428F #8F3171 #8F7E31 #318F4F
split-complementary
#31428F #8F4F31 #718F31
monochromatic
#121834 #212D61 #31428F #4157BD #6D7FCD

Accessibility & contrast

On white

9.10
#31428F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#31428F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31428F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31428F#FFFFFF#000000##FFFFFF
##31428F1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114D92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31428f;
/* rgb */ color: rgb(49, 66, 143);
/* oklch */ color: oklch(41.0% 0.129 270.4);
Tailwind
colors: {
  custom: {
    50: '#7476b0',
    500: '#31428f',
    950: '#000000',
  },
}
SCSS
$custom: #31428f;
$custom-light: #7476b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31428f",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 143
  },
  "hsl": {
    "h": 229.149,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41,
    "c": 0.1286,
    "h": 270.4
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#31428F
secondary
#B5A767
accent
#C04FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31428F

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

Preview Lab → · Contrast checker → · Palette generator →

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