#313F82#313F82

#313F82 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.4% C 0.113 H 271.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#313F82
RGBrgb(49, 63, 130)
HSLhsl(230, 45%, 35%)
HSVhsv(230, 62%, 51%)
CMYKcmyk(62.3%, 51.5%, 0%, 49%)
CIE-LABlab(28.95, 16.54, -39.62)
CIE-LCHlch(28.95, 42.93, 292.67°)
OKLaboklab(39.37% 0.0028 -0.1133)
OKLCHoklch(39.37% 0.113 271.4)
XYZxyz(7.0721, 5.8191, 21.8653)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F82 #827431
analogous
#316782 #313F82 #4C3182
triadic
#313F82 #82313F #3F8231
tetradic
#313F82 #823167 #827431 #31824C
square
#313F82 #823167 #827431 #31824C
split-complementary
#313F82 #824C31 #678231
monochromatic
#0F1429 #202956 #313F82 #4255AE #6878C6

Accessibility & contrast

On white

9.70
#313F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F82
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F82#FFFFFF#000000##FFFFFF
##313F821.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4884
Deuteranopia (green-blind)
#0A4181
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313f82;
/* rgb */ color: rgb(49, 63, 130);
/* oklch */ color: oklch(39.4% 0.113 271.4);
Tailwind
colors: {
  custom: {
    50: '#7173a7',
    500: '#313f82',
    950: '#000000',
  },
}
SCSS
$custom: #313f82;
$custom-light: #7173a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313f82",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 130
  },
  "hsl": {
    "h": 229.63,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39372,
    "c": 0.11338,
    "h": 271.4
  },
  "luminance": 0.0582
}

Semantic roles & 50–950 ramp

primary
#313F82
secondary
#ADA062
accent
#BE53D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F82

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

Preview Lab → · Contrast checker → · Palette generator →

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