#313985#313985

#313985 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.126 H 274.3°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#313985
RGBrgb(49, 57, 133)
HSLhsl(234, 46%, 36%)
HSVhsv(234, 63%, 52%)
CMYKcmyk(63.2%, 57.1%, 0%, 47.8%)
CIE-LABlab(27.50, 21.72, -43.83)
CIE-LCHlch(27.50, 48.92, 296.36°)
OKLaboklab(38.35% 0.0094 -0.1258)
OKLCHoklch(38.35% 0.126 274.3)
XYZxyz(6.9620, 5.2721, 22.8365)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313985 #857D31
analogous
#316385 #313985 #533185
triadic
#313985 #853139 #398531
tetradic
#313985 #853163 #857D31 #318553
square
#313985 #853163 #857D31 #318553
split-complementary
#313985 #855331 #638531
monochromatic
#10132C #212658 #313985 #414CB2 #6972C8

Accessibility & contrast

On white

10.22
#313985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313985
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313985#FFFFFF#000000##FFFFFF
##3139851.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004588
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313985;
/* rgb */ color: rgb(49, 57, 133);
/* oklch */ color: oklch(38.3% 0.126 274.3);
Tailwind
colors: {
  custom: {
    50: '#726fa9',
    500: '#313985',
    950: '#000000',
  },
}
SCSS
$custom: #313985;
$custom-light: #726fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#313985",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 234.286,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38346,
    "c": 0.12619,
    "h": 274.3
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#313985
secondary
#AFA863
accent
#C952D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313985

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

Preview Lab → · Contrast checker → · Palette generator →

#313985 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva