#31478F#31478F

#31478F is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.122 H 268.1°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#31478F
RGBrgb(49, 71, 143)
HSLhsl(226, 49%, 38%)
HSVhsv(226, 66%, 56%)
CMYKcmyk(65.7%, 50.3%, 0%, 43.9%)
CIE-LABlab(32.13, 15.94, -42.54)
CIE-LCHlch(32.13, 45.42, 290.54°)
OKLaboklab(42.07% -0.0041 -0.1218)
OKLCHoklch(42.07% 0.122 268.1)
XYZxyz(8.4761, 7.1419, 26.9131)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31478F #8F7931
analogous
#31768F #31478F #4A318F
triadic
#31478F #8F3147 #478F31
tetradic
#31478F #8F3176 #8F7931 #318F4A
square
#31478F #8F3176 #8F7931 #318F4A
split-complementary
#31478F #8F4A31 #768F31
monochromatic
#121A34 #213061 #31478F #415EBD #6D84CD

Accessibility & contrast

On white

8.65
#31478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#31478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31478F
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31478F#FFFFFF#000000##FFFFFF
##31478F1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#0A488E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31478f;
/* rgb */ color: rgb(49, 71, 143);
/* oklch */ color: oklch(42.1% 0.122 268.1);
Tailwind
colors: {
  custom: {
    50: '#7379b0',
    500: '#31478f',
    950: '#000000',
  },
}
SCSS
$custom: #31478f;
$custom-light: #7379b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31478f",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 225.957,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.1219,
    "h": 268.1
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#31478F
secondary
#B5A367
accent
#B84FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31478F

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

Preview Lab → · Contrast checker → · Palette generator →

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