#313C83#313C83

#313C83 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.8% C 0.119 H 273.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#313C83
RGBrgb(49, 60, 131)
HSLhsl(232, 46%, 35%)
HSVhsv(232, 63%, 51%)
CMYKcmyk(62.6%, 54.2%, 0%, 48.6%)
CIE-LABlab(28.18, 18.95, -41.49)
CIE-LCHlch(28.18, 45.61, 294.55°)
OKLaboklab(38.81% 0.0062 -0.1189)
OKLCHoklch(38.81% 0.119 273)
XYZxyz(6.9779, 5.5228, 22.1666)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C83 #837831
analogous
#316583 #313C83 #4F3183
triadic
#313C83 #83313C #3C8331
tetradic
#313C83 #833165 #837831 #31834F
square
#313C83 #833165 #837831 #31834F
split-complementary
#313C83 #834F31 #658331
monochromatic
#10132A #202856 #313C83 #4250B0 #6875C6

Accessibility & contrast

On white

9.98
#313C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C83
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C83#FFFFFF#000000##FFFFFF
##313C831.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114686
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313c83;
/* rgb */ color: rgb(49, 60, 131);
/* oklch */ color: oklch(38.8% 0.119 273.0);
Tailwind
colors: {
  custom: {
    50: '#7271a8',
    500: '#313c83',
    950: '#000000',
  },
}
SCSS
$custom: #313c83;
$custom-light: #7271a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313c83",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 131
  },
  "hsl": {
    "h": 231.951,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38808,
    "c": 0.11907,
    "h": 273
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#313C83
secondary
#AEA462
accent
#C453D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313C83

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

Preview Lab → · Contrast checker → · Palette generator →

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