#313E82#313E82

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

Color values

HEX#313E82
RGBrgb(49, 62, 130)
HSLhsl(230, 45%, 35%)
HSVhsv(230, 62%, 51%)
CMYKcmyk(62.3%, 52.3%, 0%, 49%)
CIE-LABlab(28.67, 17.22, -40.07)
CIE-LCHlch(28.67, 43.62, 293.26°)
OKLaboklab(39.16% 0.0039 -0.1147)
OKLCHoklch(39.16% 0.115 271.9)
XYZxyz(7.0172, 5.7094, 21.8470)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E82 #827531
analogous
#316782 #313E82 #4C3182
triadic
#313E82 #82313E #3E8231
tetradic
#313E82 #823167 #827531 #31824C
square
#313E82 #823167 #827531 #31824C
split-complementary
#313E82 #824C31 #678231
monochromatic
#0F1429 #202956 #313E82 #4253AE #6877C6

Accessibility & contrast

On white

9.80
#313E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E82
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E82#FFFFFF#000000##FFFFFF
##313E821.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194784
Deuteranopia (green-blind)
#064081
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313e82;
/* rgb */ color: rgb(49, 62, 130);
/* oklch */ color: oklch(39.2% 0.115 271.9);
Tailwind
colors: {
  custom: {
    50: '#7173a7',
    500: '#313e82',
    950: '#000000',
  },
}
SCSS
$custom: #313e82;
$custom-light: #7173a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313e82",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 130
  },
  "hsl": {
    "h": 230.37,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39157,
    "c": 0.11478,
    "h": 271.9
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#313E82
secondary
#ADA162
accent
#C053D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E82

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

Preview Lab → · Contrast checker → · Palette generator →

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