#313C79#313C79

#313C79 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.1% C 0.104 H 272.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#313C79
RGBrgb(49, 60, 121)
HSLhsl(231, 42%, 33%)
HSVhsv(231, 60%, 47%)
CMYKcmyk(59.5%, 50.4%, 0%, 52.5%)
CIE-LABlab(27.48, 15.30, -36.35)
CIE-LCHlch(27.48, 39.44, 292.83°)
OKLaboklab(38.06% 0.0051 -0.1038)
OKLCHoklch(38.06% 0.104 272.8)
XYZxyz(6.3325, 5.2647, 18.7679)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C79 #796E31
analogous
#316079 #313C79 #4A3179
triadic
#313C79 #79313C #3C7931
tetradic
#313C79 #793160 #796E31 #31794A
square
#313C79 #793160 #796E31 #31794A
split-complementary
#313C79 #794A31 #607931
monochromatic
#0E1122 #1F264D #313C79 #4352A5 #6472C0

Accessibility & contrast

On white

10.23
#313C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C79
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C79#FFFFFF#000000##FFFFFF
##313C791.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447B
Deuteranopia (green-blind)
#133E78
Tritanopia (blue-blind)
#034A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313c79;
/* rgb */ color: rgb(49, 60, 121);
/* oklch */ color: oklch(38.1% 0.104 272.8);
Tailwind
colors: {
  custom: {
    50: '#7071a0',
    500: '#313c79',
    950: '#000000',
  },
}
SCSS
$custom: #313c79;
$custom-light: #7071a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313c79",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 121
  },
  "hsl": {
    "h": 230.833,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38056,
    "c": 0.1039,
    "h": 272.8
  },
  "luminance": 0.05265
}

Semantic roles & 50–950 ramp

primary
#313C79
secondary
#A89C5E
accent
#BF56D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313C79

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

Preview Lab → · Contrast checker → · Palette generator →

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