#313578#313578

#313578 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.112 H 276.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#313578
RGBrgb(49, 53, 120)
HSLhsl(237, 42%, 33%)
HSVhsv(237, 59%, 47%)
CMYKcmyk(59.2%, 55.8%, 0%, 52.9%)
CIE-LABlab(25.43, 19.73, -39.01)
CIE-LCHlch(25.43, 43.72, 296.83°)
OKLaboklab(36.49% 0.0131 -0.1117)
OKLCHoklch(36.49% 0.112 276.7)
XYZxyz(5.9288, 4.5548, 18.3324)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313578 #787431
analogous
#315878 #313578 #503178
triadic
#313578 #783135 #357831
tetradic
#313578 #783158 #787431 #317850
square
#313578 #783158 #787431 #317850
split-complementary
#313578 #785031 #587831
monochromatic
#0E0F21 #1F224D #313578 #4348A3 #6469C0

Accessibility & contrast

On white

10.99
#313578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#313578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313578
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313578#FFFFFF#000000##FFFFFF
##3135781.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F7A
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#074451
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313578;
/* rgb */ color: rgb(49, 53, 120);
/* oklch */ color: oklch(36.5% 0.112 276.7);
Tailwind
colors: {
  custom: {
    50: '#706c9f',
    500: '#313578',
    950: '#000000',
  },
}
SCSS
$custom: #313578;
$custom-light: #706c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#313578",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 120
  },
  "hsl": {
    "h": 236.62,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36489,
    "c": 0.11246,
    "h": 276.7
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#313578
secondary
#A7A35E
accent
#CB56D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313578

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

Preview Lab → · Contrast checker → · Palette generator →

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