#31479F#31479F

#31479F is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.3% C 0.145 H 269.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#31479F
RGBrgb(49, 71, 159)
HSLhsl(228, 53%, 41%)
HSVhsv(228, 69%, 62%)
CMYKcmyk(69.2%, 55.3%, 0%, 37.6%)
CIE-LABlab(33.27, 21.90, -50.42)
CIE-LCHlch(33.27, 54.97, 293.48°)
OKLaboklab(43.29% -0.0026 -0.145)
OKLCHoklch(43.29% 0.145 269)
XYZxyz(9.7757, 7.6617, 33.7578)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31479F #9F8931
analogous
#317E9F #31479F #52319F
triadic
#31479F #9F3147 #479F31
tetradic
#31479F #9F317E #9F8931 #319F52
square
#31479F #9F317E #9F8931 #319F52
split-complementary
#31479F #9F5231 #7E9F31
monochromatic
#141D41 #233270 #31479F #4760C6 #7689D5

Accessibility & contrast

On white

8.29
#31479F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#31479F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31479F
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31479F#FFFFFF#000000##FFFFFF
##31479F1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31479f;
/* rgb */ color: rgb(49, 71, 159);
/* oklch */ color: oklch(43.3% 0.145 269.0);
Tailwind
colors: {
  custom: {
    50: '#7779bc',
    500: '#31479f',
    950: '#000000',
  },
}
SCSS
$custom: #31479f;
$custom-light: #7779bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31479f",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 228,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43294,
    "c": 0.14504,
    "h": 269
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#31479F
secondary
#BDAD6F
accent
#BF4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #31479F

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

Preview Lab → · Contrast checker → · Palette generator →

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