#313EA7#313EA7

#313EA7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.168 H 271.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#313EA7
RGBrgb(49, 62, 167)
HSLhsl(233, 55%, 42%)
HSVhsv(233, 71%, 65%)
CMYKcmyk(70.7%, 62.9%, 0%, 34.5%)
CIE-LABlab(31.55, 30.79, -58.03)
CIE-LCHlch(31.55, 65.69, 297.95°)
OKLaboklab(42.21% 0.0049 -0.1675)
OKLCHoklch(42.21% 0.168 271.7)
XYZxyz(9.9619, 6.8873, 37.3561)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA7 #A79A31
analogous
#3179A7 #313EA7 #5F31A7
triadic
#313EA7 #A7313E #3EA731
tetradic
#313EA7 #A73179 #A79A31 #31A75F
square
#313EA7 #A73179 #A79A31 #31A75F
split-complementary
#313EA7 #A75F31 #79A731
monochromatic
#151B48 #232C78 #313EA7 #4B59CA #7A85D8

Accessibility & contrast

On white

8.83
#313EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#313EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EA7
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EA7#FFFFFF#000000##FFFFFF
##313EA71.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313ea7;
/* rgb */ color: rgb(49, 62, 167);
/* oklch */ color: oklch(42.2% 0.168 271.7);
Tailwind
colors: {
  custom: {
    50: '#7973c2',
    500: '#313ea7',
    950: '#000000',
  },
}
SCSS
$custom: #313ea7;
$custom-light: #7973c2;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea7",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 233.39,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42214,
    "c": 0.16757,
    "h": 271.7
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#313EA7
secondary
#C1B873
accent
#CE4ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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