#313D79#313D79

#313D79 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.102 H 272.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#313D79
RGBrgb(49, 61, 121)
HSLhsl(230, 42%, 33%)
HSVhsv(230, 60%, 47%)
CMYKcmyk(59.5%, 49.6%, 0%, 52.5%)
CIE-LABlab(27.77, 14.62, -35.88)
CIE-LCHlch(27.77, 38.75, 292.16°)
OKLaboklab(38.28% 0.004 -0.1024)
OKLCHoklch(38.28% 0.102 272.2)
XYZxyz(6.3854, 5.3705, 18.7856)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D79 #796D31
analogous
#316179 #313D79 #493179
triadic
#313D79 #79313D #3D7931
tetradic
#313D79 #793161 #796D31 #317949
square
#313D79 #793161 #796D31 #317949
split-complementary
#313D79 #794931 #617931
monochromatic
#0E1122 #1F274D #313D79 #4353A5 #6473C0

Accessibility & contrast

On white

10.12
#313D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D79
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D79#FFFFFF#000000##FFFFFF
##313D791.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457B
Deuteranopia (green-blind)
#163F78
Tritanopia (blue-blind)
#034A55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313d79;
/* rgb */ color: rgb(49, 61, 121);
/* oklch */ color: oklch(38.3% 0.102 272.2);
Tailwind
colors: {
  custom: {
    50: '#7072a0',
    500: '#313d79',
    950: '#000000',
  },
}
SCSS
$custom: #313d79;
$custom-light: #7072a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313d79",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 121
  },
  "hsl": {
    "h": 230,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38275,
    "c": 0.10248,
    "h": 272.2
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#313D79
secondary
#A89B5E
accent
#BD56D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313D79

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

Preview Lab → · Contrast checker → · Palette generator →

#313D79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva