#313FA3#313FA3

#313FA3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.161 H 271.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#313FA3
RGBrgb(49, 63, 163)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(69.9%, 61.3%, 0%, 36.1%)
CIE-LABlab(31.47, 28.68, -55.76)
CIE-LCHlch(31.47, 62.70, 297.22°)
OKLaboklab(42.05% 0.0042 -0.1608)
OKLCHoklch(42.05% 0.161 271.5)
XYZxyz(9.6528, 6.8514, 35.4570)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA3 #A39531
analogous
#3178A3 #313FA3 #5C31A3
triadic
#313FA3 #A3313F #3FA331
tetradic
#313FA3 #A33178 #A39531 #31A35C
square
#313FA3 #A33178 #A39531 #31A35C
split-complementary
#313FA3 #A35C31 #78A331
monochromatic
#151B45 #232D74 #313FA3 #4959C8 #7884D6

Accessibility & contrast

On white

8.86
#313FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#313FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FA3
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FA3#FFFFFF#000000##FFFFFF
##313FA31.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313fa3;
/* rgb */ color: rgb(49, 63, 163);
/* oklch */ color: oklch(42.0% 0.161 271.5);
Tailwind
colors: {
  custom: {
    50: '#7874bf',
    500: '#313fa3',
    950: '#000000',
  },
}
SCSS
$custom: #313fa3;
$custom-light: #7874bf;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa3",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 232.632,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42048,
    "c": 0.16088,
    "h": 271.5
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#313FA3
secondary
#BFB571
accent
#CB4BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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