#313579#313579

#313579 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.6% C 0.114 H 276.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#313579
RGBrgb(49, 53, 121)
HSLhsl(237, 42%, 33%)
HSVhsv(237, 60%, 47%)
CMYKcmyk(59.5%, 56.2%, 0%, 52.5%)
CIE-LABlab(25.50, 20.09, -39.53)
CIE-LCHlch(25.50, 44.34, 296.94°)
OKLaboklab(36.57% 0.0132 -0.1132)
OKLCHoklch(36.57% 0.114 276.6)
XYZxyz(5.9898, 4.5792, 18.6537)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313579 #797531
analogous
#315979 #313579 #513179
triadic
#313579 #793135 #357931
tetradic
#313579 #793159 #797531 #317951
square
#313579 #793159 #797531 #317951
split-complementary
#313579 #795131 #597931
monochromatic
#0E0F22 #1F224D #313579 #4348A5 #6469C0

Accessibility & contrast

On white

10.96
#313579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313579
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313579#FFFFFF#000000##FFFFFF
##3135791.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3F7B
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#054551
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313579;
/* rgb */ color: rgb(49, 53, 121);
/* oklch */ color: oklch(36.6% 0.114 276.6);
Tailwind
colors: {
  custom: {
    50: '#706ca0',
    500: '#313579',
    950: '#000000',
  },
}
SCSS
$custom: #313579;
$custom-light: #706ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#313579",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 121
  },
  "hsl": {
    "h": 236.667,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36568,
    "c": 0.11397,
    "h": 276.6
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#313579
secondary
#A8A45E
accent
#CB56D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #313579

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

Preview Lab → · Contrast checker → · Palette generator →

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