#313E80#313E80

#313E80 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.112 H 271.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#313E80
RGBrgb(49, 62, 128)
HSLhsl(230, 45%, 35%)
HSVhsv(230, 62%, 50%)
CMYKcmyk(61.7%, 51.6%, 0%, 49.8%)
CIE-LABlab(28.53, 16.49, -39.05)
CIE-LCHlch(28.53, 42.39, 292.89°)
OKLaboklab(39.01% 0.0037 -0.1117)
OKLCHoklch(39.01% 0.112 271.9)
XYZxyz(6.8842, 5.6562, 21.1469)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E80 #807331
analogous
#316580 #313E80 #4C3180
triadic
#313E80 #80313E #3E8031
tetradic
#313E80 #803165 #807331 #31804C
square
#313E80 #803165 #807331 #31804C
split-complementary
#313E80 #804C31 #658031
monochromatic
#0F1327 #202954 #313E80 #4253AC #6776C5

Accessibility & contrast

On white

9.85
#313E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E80
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E80#FFFFFF#000000##FFFFFF
##313E801.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4782
Deuteranopia (green-blind)
#0C407F
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313e80;
/* rgb */ color: rgb(49, 62, 128);
/* oklch */ color: oklch(39.0% 0.112 271.9);
Tailwind
colors: {
  custom: {
    50: '#7173a5',
    500: '#313e80',
    950: '#000000',
  },
}
SCSS
$custom: #313e80;
$custom-light: #7173a5;
$custom-dark: #000000;
JSON
{
  "hex": "#313e80",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 128
  },
  "hsl": {
    "h": 230.127,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39007,
    "c": 0.11176,
    "h": 271.9
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#313E80
secondary
#ACA061
accent
#BF53D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E80

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

Preview Lab → · Contrast checker → · Palette generator →

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