#313679#313679

#313679 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.113 H 276.1°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#313679
RGBrgb(49, 54, 121)
HSLhsl(236, 42%, 33%)
HSVhsv(236, 60%, 47%)
CMYKcmyk(59.5%, 55.4%, 0%, 52.5%)
CIE-LABlab(25.78, 19.41, -39.08)
CIE-LCHlch(25.78, 43.63, 296.41°)
OKLaboklab(36.78% 0.0121 -0.1119)
OKLCHoklch(36.78% 0.113 276.1)
XYZxyz(6.0359, 4.6713, 18.6690)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313679 #797431
analogous
#315A79 #313679 #503179
triadic
#313679 #793136 #367931
tetradic
#313679 #79315A #797431 #317950
square
#313679 #79315A #797431 #317950
split-complementary
#313679 #795031 #5A7931
monochromatic
#0E0F22 #1F234D #313679 #4349A5 #646BC0

Accessibility & contrast

On white

10.86
#313679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313679
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313679#FFFFFF#000000##FFFFFF
##3136791.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407B
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#054552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313679;
/* rgb */ color: rgb(49, 54, 121);
/* oklch */ color: oklch(36.8% 0.113 276.1);
Tailwind
colors: {
  custom: {
    50: '#706ca0',
    500: '#313679',
    950: '#000000',
  },
}
SCSS
$custom: #313679;
$custom-light: #706ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#313679",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 121
  },
  "hsl": {
    "h": 235.833,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36775,
    "c": 0.11253,
    "h": 276.1
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#313679
secondary
#A8A35E
accent
#C956D2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313679

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

Preview Lab → · Contrast checker → · Palette generator →

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