#31479B#31479B

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

Color values

HEX#31479B
RGBrgb(49, 71, 155)
HSLhsl(228, 52%, 40%)
HSVhsv(228, 68%, 61%)
CMYKcmyk(68.4%, 54.2%, 0%, 39.2%)
CIE-LABlab(32.97, 20.41, -48.48)
CIE-LCHlch(32.97, 52.60, 292.83°)
OKLaboklab(42.98% -0.0029 -0.1393)
OKLCHoklch(42.98% 0.139 268.8)
XYZxyz(9.4342, 7.5251, 31.9593)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31479B #9B8531
analogous
#317C9B #31479B #50319B
triadic
#31479B #9B3147 #479B31
tetradic
#31479B #9B317C #9B8531 #319B50
square
#31479B #9B317C #9B8531 #319B50
split-complementary
#31479B #9B5031 #7C9B31
monochromatic
#141C3E #22326D #31479B #455FC4 #7387D3

Accessibility & contrast

On white

8.38
#31479B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31479B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31479B#FFFFFF#000000##FFFFFF
##31479B1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D539E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#005B6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31479b;
/* rgb */ color: rgb(49, 71, 155);
/* oklch */ color: oklch(43.0% 0.139 268.8);
Tailwind
colors: {
  custom: {
    50: '#7679b9',
    500: '#31479b',
    950: '#000000',
  },
}
SCSS
$custom: #31479b;
$custom-light: #7679b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31479b",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 155
  },
  "hsl": {
    "h": 227.547,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.42979,
    "c": 0.13935,
    "h": 268.8
  },
  "luminance": 0.07526
}

Semantic roles & 50–950 ramp

primary
#31479B
secondary
#BBAB6D
accent
#BE4CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #31479B

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

Preview Lab → · Contrast checker → · Palette generator →

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