#313497#313497

#313497 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.158 H 274.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#313497
RGBrgb(49, 52, 151)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 68%, 59%)
CMYKcmyk(67.5%, 65.6%, 0%, 40.8%)
CIE-LABlab(27.69, 31.52, -54.64)
CIE-LCHlch(27.69, 63.08, 299.98°)
OKLaboklab(38.95% 0.0136 -0.1576)
OKLCHoklch(38.95% 0.158 274.9)
XYZxyz(8.0787, 5.3426, 29.8776)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313497 #979431
analogous
#316797 #313497 #613197
triadic
#313497 #973134 #349731
tetradic
#313497 #973167 #979431 #319761
square
#313497 #973167 #979431 #319761
split-complementary
#313497 #976131 #679731
monochromatic
#13143B #222469 #313497 #4347C2 #7174D1

Accessibility & contrast

On white

10.15
#313497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313497
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313497#FFFFFF#000000##FFFFFF
##3134971.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313497;
/* rgb */ color: rgb(49, 52, 151);
/* oklch */ color: oklch(39.0% 0.158 274.9);
Tailwind
colors: {
  custom: {
    50: '#766cb6',
    500: '#313497',
    950: '#000000',
  },
}
SCSS
$custom: #313497;
$custom-light: #766cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313497",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 238.235,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38952,
    "c": 0.1582,
    "h": 274.9
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#313497
secondary
#B9B76B
accent
#D64DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313497

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

Preview Lab → · Contrast checker → · Palette generator →

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