#31407F#31407F

#31407F is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.107 H 270.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#31407F
RGBrgb(49, 64, 127)
HSLhsl(228, 44%, 35%)
HSVhsv(228, 61%, 50%)
CMYKcmyk(61.4%, 49.6%, 0%, 50.2%)
CIE-LABlab(29.03, 14.76, -37.61)
CIE-LCHlch(29.03, 40.40, 291.43°)
OKLaboklab(39.37% 0.0013 -0.1074)
OKLCHoklch(39.37% 0.107 270.7)
XYZxyz(6.9295, 5.8515, 20.8388)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31407F #7F7031
analogous
#31677F #31407F #49317F
triadic
#31407F #7F3140 #407F31
tetradic
#31407F #7F3167 #7F7031 #317F49
square
#31407F #7F3167 #7F7031 #317F49
split-complementary
#31407F #7F4931 #677F31
monochromatic
#0F1327 #202A53 #31407F #4256AB #6678C4

Accessibility & contrast

On white

9.68
#31407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#31407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31407F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31407F#FFFFFF#000000##FFFFFF
##31407F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214881
Deuteranopia (green-blind)
#14417E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31407f;
/* rgb */ color: rgb(49, 64, 127);
/* oklch */ color: oklch(39.4% 0.107 270.7);
Tailwind
colors: {
  custom: {
    50: '#7174a4',
    500: '#31407f',
    950: '#000000',
  },
}
SCSS
$custom: #31407f;
$custom-light: #7174a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31407f",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 228.462,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39369,
    "c": 0.10745,
    "h": 270.7
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#31407F
secondary
#AB9D60
accent
#BB54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31407F

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

Preview Lab → · Contrast checker → · Palette generator →

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