#313E85#313E85

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

Color values

HEX#313E85
RGBrgb(49, 62, 133)
HSLhsl(231, 46%, 36%)
HSVhsv(231, 63%, 52%)
CMYKcmyk(63.2%, 53.4%, 0%, 47.8%)
CIE-LABlab(28.88, 18.33, -41.60)
CIE-LCHlch(28.88, 45.46, 293.77°)
OKLaboklab(39.39% 0.0042 -0.1192)
OKLCHoklch(39.39% 0.119 272)
XYZxyz(7.2215, 5.7911, 22.9230)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E85 #857831
analogous
#316885 #313E85 #4E3185
triadic
#313E85 #85313E #3E8531
tetradic
#313E85 #853168 #857831 #31854E
square
#313E85 #853168 #857831 #31854E
split-complementary
#313E85 #854E31 #688531
monochromatic
#10142C #212958 #313E85 #4153B2 #6977C8

Accessibility & contrast

On white

9.73
#313E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E85
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E85#FFFFFF#000000##FFFFFF
##313E851.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154888
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313e85;
/* rgb */ color: rgb(49, 62, 133);
/* oklch */ color: oklch(39.4% 0.119 272.0);
Tailwind
colors: {
  custom: {
    50: '#7273a9',
    500: '#313e85',
    950: '#000000',
  },
}
SCSS
$custom: #313e85;
$custom-light: #7273a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313e85",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 133
  },
  "hsl": {
    "h": 230.714,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39385,
    "c": 0.11927,
    "h": 272
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#313E85
secondary
#AFA363
accent
#C152D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #313E85

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

Preview Lab → · Contrast checker → · Palette generator →

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