#313B79#313B79

#313B79 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.105 H 273.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#313B79
RGBrgb(49, 59, 121)
HSLhsl(232, 42%, 33%)
HSVhsv(232, 60%, 47%)
CMYKcmyk(59.5%, 51.2%, 0%, 52.5%)
CIE-LABlab(27.19, 15.99, -36.81)
CIE-LCHlch(27.19, 40.13, 293.48°)
OKLaboklab(37.84% 0.0063 -0.1051)
OKLCHoklch(37.84% 0.105 273.4)
XYZxyz(6.2807, 5.1609, 18.7506)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B79 #796F31
analogous
#315F79 #313B79 #4B3179
triadic
#313B79 #79313B #3B7931
tetradic
#313B79 #79315F #796F31 #31794B
square
#313B79 #79315F #796F31 #31794B
split-complementary
#313B79 #794B31 #5F7931
monochromatic
#0E1122 #1F264D #313B79 #4350A5 #6471C0

Accessibility & contrast

On white

10.33
#313B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B79
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B79#FFFFFF#000000##FFFFFF
##313B791.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C437B
Deuteranopia (green-blind)
#103D78
Tritanopia (blue-blind)
#034954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313b79;
/* rgb */ color: rgb(49, 59, 121);
/* oklch */ color: oklch(37.8% 0.105 273.4);
Tailwind
colors: {
  custom: {
    50: '#7070a0',
    500: '#313b79',
    950: '#000000',
  },
}
SCSS
$custom: #313b79;
$custom-light: #7070a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313b79",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 121
  },
  "hsl": {
    "h": 231.667,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37838,
    "c": 0.10533,
    "h": 273.4
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#313B79
secondary
#A89D5E
accent
#C156D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313B79

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

Preview Lab → · Contrast checker → · Palette generator →

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