#31439D#31439D

#31439D is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.147 H 270.3°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#31439D
RGBrgb(49, 67, 157)
HSLhsl(230, 52%, 40%)
HSVhsv(230, 69%, 62%)
CMYKcmyk(68.8%, 57.3%, 0%, 38.4%)
CIE-LABlab(32.04, 23.83, -51.21)
CIE-LCHlch(32.04, 56.48, 294.95°)
OKLaboklab(42.32% 0.0008 -0.1474)
OKLCHoklch(42.32% 0.147 270.3)
XYZxyz(9.3575, 7.1007, 32.7692)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31439D #9D8B31
analogous
#31799D #31439D #55319D
triadic
#31439D #9D3143 #439D31
tetradic
#31439D #9D3179 #9D8B31 #319D55
square
#31439D #9D3179 #9D8B31 #319D55
split-complementary
#31439D #9D5531 #799D31
monochromatic
#141B40 #222F6E #31439D #465BC5 #7584D4

Accessibility & contrast

On white

8.68
#31439D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#31439D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31439D
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31439D#FFFFFF#000000##FFFFFF
##31439D1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31439d;
/* rgb */ color: rgb(49, 67, 157);
/* oklch */ color: oklch(42.3% 0.147 270.3);
Tailwind
colors: {
  custom: {
    50: '#7776bb',
    500: '#31439d',
    950: '#000000',
  },
}
SCSS
$custom: #31439d;
$custom-light: #7776bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31439d",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 157
  },
  "hsl": {
    "h": 230,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42321,
    "c": 0.14741,
    "h": 270.3
  },
  "luminance": 0.07102
}

Semantic roles & 50–950 ramp

primary
#31439D
secondary
#BCAF6E
accent
#C44CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31439D

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

Preview Lab → · Contrast checker → · Palette generator →

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