#313BA7#313BA7

#313BA7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.171 H 272.4°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#313BA7
RGBrgb(49, 59, 167)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 65%)
CMYKcmyk(70.7%, 64.7%, 0%, 34.5%)
CIE-LABlab(30.81, 32.73, -59.24)
CIE-LCHlch(30.81, 67.68, 298.92°)
OKLaboklab(41.67% 0.0071 -0.1711)
OKLCHoklch(41.67% 0.171 272.4)
XYZxyz(9.8033, 6.5700, 37.3032)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA7 #A79D31
analogous
#3176A7 #313BA7 #6231A7
triadic
#313BA7 #A7313B #3BA731
tetradic
#313BA7 #A73176 #A79D31 #31A762
square
#313BA7 #A73176 #A79D31 #31A762
split-complementary
#313BA7 #A76231 #76A731
monochromatic
#151A48 #232A78 #313BA7 #4B56CA #7A82D8

Accessibility & contrast

On white

9.07
#313BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#313BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA7
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA7#FFFFFF#000000##FFFFFF
##313BA71.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ba7;
/* rgb */ color: rgb(49, 59, 167);
/* oklch */ color: oklch(41.7% 0.171 272.4);
Tailwind
colors: {
  custom: {
    50: '#7971c2',
    500: '#313ba7',
    950: '#000000',
  },
}
SCSS
$custom: #313ba7;
$custom-light: #7971c2;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba7",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 234.915,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41669,
    "c": 0.17123,
    "h": 272.4
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#313BA7
secondary
#C1BA73
accent
#D14ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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