#31479C#31479C

#31479C is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.141 H 268.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#31479C
RGBrgb(49, 71, 156)
HSLhsl(228, 52%, 40%)
HSVhsv(228, 69%, 61%)
CMYKcmyk(68.6%, 54.5%, 0%, 38.8%)
CIE-LABlab(33.05, 20.78, -48.97)
CIE-LCHlch(33.05, 53.19, 293.00°)
OKLaboklab(43.06% -0.0028 -0.1407)
OKLCHoklch(43.06% 0.141 268.8)
XYZxyz(9.5186, 7.5588, 32.4034)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31479C #9C8631
analogous
#317C9C #31479C #51319C
triadic
#31479C #9C3147 #479C31
tetradic
#31479C #9C317C #9C8631 #319C51
square
#31479C #9C317C #9C8631 #319C51
split-complementary
#31479C #9C5131 #7C9C31
monochromatic
#141D3F #22326D #31479C #4560C5 #7488D3

Accessibility & contrast

On white

8.36
#31479C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#31479C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31479C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31479C#FFFFFF#000000##FFFFFF
##31479C1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A539F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#005B6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31479c;
/* rgb */ color: rgb(49, 71, 156);
/* oklch */ color: oklch(43.1% 0.141 268.8);
Tailwind
colors: {
  custom: {
    50: '#7679ba',
    500: '#31479c',
    950: '#000000',
  },
}
SCSS
$custom: #31479c;
$custom-light: #7679ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31479c",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 227.664,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43057,
    "c": 0.14078,
    "h": 268.8
  },
  "luminance": 0.0756
}

Semantic roles & 50–950 ramp

primary
#31479C
secondary
#BBAB6D
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #31479C

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

Preview Lab → · Contrast checker → · Palette generator →

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