#31479A#31479A

#31479A is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.9% C 0.138 H 268.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#31479A
RGBrgb(49, 71, 154)
HSLhsl(227, 52%, 40%)
HSVhsv(227, 68%, 60%)
CMYKcmyk(68.2%, 53.9%, 0%, 39.6%)
CIE-LABlab(32.90, 20.04, -47.99)
CIE-LCHlch(32.90, 52.01, 292.66°)
OKLaboklab(42.9% -0.003 -0.1379)
OKLCHoklch(42.9% 0.138 268.8)
XYZxyz(9.3506, 7.4917, 31.5188)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31479A #9A8431
analogous
#317B9A #31479A #50319A
triadic
#31479A #9A3147 #479A31
tetradic
#31479A #9A317B #9A8431 #319A50
square
#31479A #9A317B #9A8431 #319A50
split-complementary
#31479A #9A5031 #7B9A31
monochromatic
#131C3D #22326C #31479A #455FC4 #7387D2

Accessibility & contrast

On white

8.40
#31479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#31479A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31479A
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31479A#FFFFFF#000000##FFFFFF
##31479A1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F529D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31479a;
/* rgb */ color: rgb(49, 71, 154);
/* oklch */ color: oklch(42.9% 0.138 268.8);
Tailwind
colors: {
  custom: {
    50: '#7679b8',
    500: '#31479a',
    950: '#000000',
  },
}
SCSS
$custom: #31479a;
$custom-light: #7679b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31479a",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 227.429,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42901,
    "c": 0.13791,
    "h": 268.8
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#31479A
secondary
#BAAA6C
accent
#BD4DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #31479A

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

Preview Lab → · Contrast checker → · Palette generator →

#31479A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva