#313F80#313F80

#313F80 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.110 H 271.3°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#313F80
RGBrgb(49, 63, 128)
HSLhsl(229, 45%, 35%)
HSVhsv(229, 62%, 50%)
CMYKcmyk(61.7%, 50.8%, 0%, 49.8%)
CIE-LABlab(28.81, 15.81, -38.59)
CIE-LCHlch(28.81, 41.70, 292.28°)
OKLaboklab(39.22% 0.0026 -0.1103)
OKLCHoklch(39.22% 0.11 271.3)
XYZxyz(6.9391, 5.7659, 21.1652)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F80 #807231
analogous
#316780 #313F80 #4B3180
triadic
#313F80 #80313F #3F8031
tetradic
#313F80 #803167 #807231 #31804B
square
#313F80 #803167 #807231 #31804B
split-complementary
#313F80 #804B31 #678031
monochromatic
#0F1327 #202954 #313F80 #4255AC #6777C5

Accessibility & contrast

On white

9.75
#313F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#313F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F80
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F80#FFFFFF#000000##FFFFFF
##313F801.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4882
Deuteranopia (green-blind)
#0F417F
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313f80;
/* rgb */ color: rgb(49, 63, 128);
/* oklch */ color: oklch(39.2% 0.110 271.3);
Tailwind
colors: {
  custom: {
    50: '#7173a5',
    500: '#313f80',
    950: '#000000',
  },
}
SCSS
$custom: #313f80;
$custom-light: #7173a5;
$custom-dark: #000000;
JSON
{
  "hex": "#313f80",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 128
  },
  "hsl": {
    "h": 229.367,
    "s": 44.633,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39224,
    "c": 0.11036,
    "h": 271.3
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#313F80
secondary
#AC9F61
accent
#BE53D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F80

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

Preview Lab → · Contrast checker → · Palette generator →

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