#313779#313779

#313779 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.111 H 275.6°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#313779
RGBrgb(49, 55, 121)
HSLhsl(235, 42%, 33%)
HSVhsv(235, 60%, 47%)
CMYKcmyk(59.5%, 54.5%, 0%, 52.5%)
CIE-LABlab(26.06, 18.72, -38.63)
CIE-LCHlch(26.06, 42.93, 295.86°)
OKLaboklab(36.98% 0.0109 -0.1105)
OKLCHoklch(36.98% 0.111 275.6)
XYZxyz(6.0829, 4.7654, 18.6847)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313779 #797331
analogous
#315B79 #313779 #4F3179
triadic
#313779 #793137 #377931
tetradic
#313779 #79315B #797331 #31794F
square
#313779 #79315B #797331 #31794F
split-complementary
#313779 #794F31 #5B7931
monochromatic
#0E0F22 #1F234D #313779 #434BA5 #646CC0

Accessibility & contrast

On white

10.75
#313779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#313779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313779
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313779#FFFFFF#000000##FFFFFF
##3137791.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11417B
Deuteranopia (green-blind)
#023B78
Tritanopia (blue-blind)
#054652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313779;
/* rgb */ color: rgb(49, 55, 121);
/* oklch */ color: oklch(37.0% 0.111 275.6);
Tailwind
colors: {
  custom: {
    50: '#706da0',
    500: '#313779',
    950: '#000000',
  },
}
SCSS
$custom: #313779;
$custom-light: #706da0;
$custom-dark: #000000;
JSON
{
  "hex": "#313779",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 121
  },
  "hsl": {
    "h": 235,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36984,
    "c": 0.11109,
    "h": 275.6
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#313779
secondary
#A8A25E
accent
#C856D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313779

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

Preview Lab → · Contrast checker → · Palette generator →

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