#313477#313477

#313477 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.2% C 0.112 H 277.3°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#313477
RGBrgb(49, 52, 119)
HSLhsl(237, 42%, 33%)
HSVhsv(237, 59%, 47%)
CMYKcmyk(58.8%, 56.3%, 0%, 53.3%)
CIE-LABlab(25.08, 20.05, -38.94)
CIE-LCHlch(25.08, 43.80, 297.25°)
OKLaboklab(36.2% 0.0142 -0.1115)
OKLCHoklch(36.2% 0.112 277.3)
XYZxyz(5.8233, 4.4405, 17.9994)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313477 #777431
analogous
#315777 #313477 #513177
triadic
#313477 #773134 #347731
tetradic
#313477 #773157 #777431 #317751
square
#313477 #773157 #777431 #317751
split-complementary
#313477 #775131 #577731
monochromatic
#0D0E20 #1F214C #313477 #4347A2 #6367BF

Accessibility & contrast

On white

11.12
#313477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313477
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313477#FFFFFF#000000##FFFFFF
##3134771.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3E79
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#0A4350
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313477;
/* rgb */ color: rgb(49, 52, 119);
/* oklch */ color: oklch(36.2% 0.112 277.3);
Tailwind
colors: {
  custom: {
    50: '#706b9f',
    500: '#313477',
    950: '#000000',
  },
}
SCSS
$custom: #313477;
$custom-light: #706b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#313477",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 119
  },
  "hsl": {
    "h": 237.429,
    "s": 41.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.11239,
    "h": 277.3
  },
  "luminance": 0.04441
}

Semantic roles & 50–950 ramp

primary
#313477
secondary
#A6A35D
accent
#CC56D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313477

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

Preview Lab → · Contrast checker → · Palette generator →

#313477 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva