#31407E#31407E

#31407E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.106 H 270.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#31407E
RGBrgb(49, 64, 126)
HSLhsl(228, 44%, 34%)
HSVhsv(228, 61%, 49%)
CMYKcmyk(61.1%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.97, 14.40, -37.09)
CIE-LCHlch(28.97, 39.79, 291.21°)
OKLaboklab(39.3% 0.0012 -0.1059)
OKLCHoklch(39.3% 0.106 270.6)
XYZxyz(6.8647, 5.8256, 20.4973)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31407E #7E6F31
analogous
#31677E #31407E #49317E
triadic
#31407E #7E3140 #407E31
tetradic
#31407E #7E3167 #7E6F31 #317E49
square
#31407E #7E3167 #7E6F31 #317E49
split-complementary
#31407E #7E4931 #677E31
monochromatic
#0F1326 #202A52 #31407E #4256AA #6678C3

Accessibility & contrast

On white

9.70
#31407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31407E
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31407E#FFFFFF#000000##FFFFFF
##31407E1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#16417D
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31407e;
/* rgb */ color: rgb(49, 64, 126);
/* oklch */ color: oklch(39.3% 0.106 270.6);
Tailwind
colors: {
  custom: {
    50: '#7174a4',
    500: '#31407e',
    950: '#000000',
  },
}
SCSS
$custom: #31407e;
$custom-light: #7174a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31407e",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 228.312,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.10593,
    "h": 270.6
  },
  "luminance": 0.05826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31407E

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

Preview Lab → · Contrast checker → · Palette generator →

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