#313D85#313D85

#313D85 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.121 H 272.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#313D85
RGBrgb(49, 61, 133)
HSLhsl(231, 46%, 36%)
HSVhsv(231, 63%, 52%)
CMYKcmyk(63.2%, 54.1%, 0%, 47.8%)
CIE-LABlab(28.60, 19.01, -42.05)
CIE-LCHlch(28.60, 46.15, 294.32°)
OKLaboklab(39.17% 0.0053 -0.1205)
OKLCHoklch(39.17% 0.121 272.5)
XYZxyz(7.1676, 5.6833, 22.9050)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D85 #857931
analogous
#316785 #313D85 #4F3185
triadic
#313D85 #85313D #3D8531
tetradic
#313D85 #853167 #857931 #31854F
square
#313D85 #853167 #857931 #31854F
split-complementary
#313D85 #854F31 #678531
monochromatic
#10142C #212858 #313D85 #4152B2 #6976C8

Accessibility & contrast

On white

9.83
#313D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313D85
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D85#FFFFFF#000000##FFFFFF
##313D851.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114788
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313d85;
/* rgb */ color: rgb(49, 61, 133);
/* oklch */ color: oklch(39.2% 0.121 272.5);
Tailwind
colors: {
  custom: {
    50: '#7272a9',
    500: '#313d85',
    950: '#000000',
  },
}
SCSS
$custom: #313d85;
$custom-light: #7272a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313d85",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 133
  },
  "hsl": {
    "h": 231.429,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39174,
    "c": 0.12065,
    "h": 272.5
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#313D85
secondary
#AFA463
accent
#C352D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313D85

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

Preview Lab → · Contrast checker → · Palette generator →

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