#313FA7#313FA7

#313FA7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.166 H 271.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#313FA7
RGBrgb(49, 63, 167)
HSLhsl(233, 55%, 42%)
HSVhsv(233, 71%, 65%)
CMYKcmyk(70.7%, 62.3%, 0%, 34.5%)
CIE-LABlab(31.80, 30.14, -57.62)
CIE-LCHlch(31.80, 65.03, 297.61°)
OKLaboklab(42.4% 0.0041 -0.1663)
OKLCHoklch(42.4% 0.166 271.4)
XYZxyz(10.0168, 6.9970, 37.3744)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA7 #A79931
analogous
#317AA7 #313FA7 #5E31A7
triadic
#313FA7 #A7313F #3FA731
tetradic
#313FA7 #A7317A #A79931 #31A75E
square
#313FA7 #A7317A #A79931 #31A75E
split-complementary
#313FA7 #A75E31 #7AA731
monochromatic
#151B48 #232D78 #313FA7 #4B5ACA #7A85D8

Accessibility & contrast

On white

8.75
#313FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#313FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FA7
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FA7#FFFFFF#000000##FFFFFF
##313FA71.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313fa7;
/* rgb */ color: rgb(49, 63, 167);
/* oklch */ color: oklch(42.4% 0.166 271.4);
Tailwind
colors: {
  custom: {
    50: '#7974c2',
    500: '#313fa7',
    950: '#000000',
  },
}
SCSS
$custom: #313fa7;
$custom-light: #7974c2;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa7",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 232.881,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42399,
    "c": 0.16634,
    "h": 271.4
  },
  "luminance": 0.06998
}

Semantic roles & 50–950 ramp

primary
#313FA7
secondary
#C1B773
accent
#CC4ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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