#31478C#31478C

#31478C is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.117 H 267.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#31478C
RGBrgb(49, 71, 140)
HSLhsl(225, 48%, 37%)
HSVhsv(225, 65%, 55%)
CMYKcmyk(65%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.93, 14.82, -41.02)
CIE-LCHlch(31.93, 43.62, 289.87°)
OKLaboklab(41.85% -0.0045 -0.1174)
OKLCHoklch(41.85% 0.117 267.8)
XYZxyz(8.2519, 7.0522, 25.7322)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31478C #8C7631
analogous
#31748C #31478C #49318C
triadic
#31478C #8C3147 #478C31
tetradic
#31478C #8C3174 #8C7631 #318C49
square
#31478C #8C3174 #8C7631 #318C49
split-complementary
#31478C #8C4931 #748C31
monochromatic
#111931 #21305F #31478C #415EB9 #6C83CC

Accessibility & contrast

On white

8.71
#31478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#31478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31478C
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31478C#FFFFFF#000000##FFFFFF
##31478C1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8F
Deuteranopia (green-blind)
#11478B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31478c;
/* rgb */ color: rgb(49, 71, 140);
/* oklch */ color: oklch(41.9% 0.117 267.8);
Tailwind
colors: {
  custom: {
    50: '#7379ae',
    500: '#31478c',
    950: '#000000',
  },
}
SCSS
$custom: #31478c;
$custom-light: #7379ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31478c",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 225.495,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4185,
    "c": 0.11747,
    "h": 267.8
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#31478C
secondary
#B3A066
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31478C

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

Preview Lab → · Contrast checker → · Palette generator →

#31478C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva