#31428B#31428B

#31428B is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.123 H 270.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#31428B
RGBrgb(49, 66, 139)
HSLhsl(229, 48%, 37%)
HSVhsv(229, 65%, 55%)
CMYKcmyk(64.7%, 52.5%, 0%, 45.5%)
CIE-LABlab(30.43, 17.83, -42.81)
CIE-LCHlch(30.43, 46.38, 292.61°)
OKLaboklab(40.69% 0.0006 -0.1227)
OKLCHoklch(40.69% 0.123 270.3)
XYZxyz(7.8735, 6.4128, 25.2440)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31428B #8B7A31
analogous
#316F8B #31428B #4D318B
triadic
#31428B #8B3142 #428B31
tetradic
#31428B #8B316F #8B7A31 #318B4D
square
#31428B #8B316F #8B7A31 #318B4D
split-complementary
#31428B #8B4D31 #6F8B31
monochromatic
#111731 #212D5E #31428B #4157B8 #6B7DCB

Accessibility & contrast

On white

9.20
#31428B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#31428B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31428B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31428B#FFFFFF#000000##FFFFFF
##31428B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#004489
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31428b;
/* rgb */ color: rgb(49, 66, 139);
/* oklch */ color: oklch(40.7% 0.123 270.3);
Tailwind
colors: {
  custom: {
    50: '#7376ad',
    500: '#31428b',
    950: '#000000',
  },
}
SCSS
$custom: #31428b;
$custom-light: #7376ad;
$custom-dark: #000000;
JSON
{
  "hex": "#31428b",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 139
  },
  "hsl": {
    "h": 228.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40693,
    "c": 0.12272,
    "h": 270.3
  },
  "luminance": 0.06413
}

Semantic roles & 50–950 ramp

primary
#31428B
secondary
#B2A465
accent
#BE50D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31428B

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

Preview Lab → · Contrast checker → · Palette generator →

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