#313495#313495

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

Color values

HEX#313495
RGBrgb(49, 52, 149)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 67%, 58%)
CMYKcmyk(67.1%, 65.1%, 0%, 41.6%)
CIE-LABlab(27.51, 30.81, -53.70)
CIE-LCHlch(27.51, 61.91, 299.85°)
OKLaboklab(38.77% 0.0137 -0.1549)
OKLCHoklch(38.77% 0.155 275.1)
XYZxyz(7.9176, 5.2782, 29.0295)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313495 #959231
analogous
#316695 #313495 #603195
triadic
#313495 #953134 #349531
tetradic
#313495 #953166 #959231 #319560
square
#313495 #953166 #959231 #319560
split-complementary
#313495 #956031 #669531
monochromatic
#131439 #222467 #313495 #4246C1 #7073D0

Accessibility & contrast

On white

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

On black

2.06
#313495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##313495#FFFFFF#000000##FFFFFF
##3134951.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313495;
/* rgb */ color: rgb(49, 52, 149);
/* oklch */ color: oklch(38.8% 0.155 275.1);
Tailwind
colors: {
  custom: {
    50: '#766bb5',
    500: '#313495',
    950: '#000000',
  },
}
SCSS
$custom: #313495;
$custom-light: #766bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#313495",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 238.2,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.15548,
    "h": 275.1
  },
  "luminance": 0.05279
}

Semantic roles & 50–950 ramp

primary
#313495
secondary
#B8B56A
accent
#D64EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313495

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

Preview Lab → · Contrast checker → · Palette generator →

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