#313AA7#313AA7

#313AA7 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.172 H 272.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#313AA7
RGBrgb(49, 58, 167)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 65%)
CMYKcmyk(70.7%, 65.3%, 0%, 34.5%)
CIE-LABlab(30.56, 33.37, -59.64)
CIE-LCHlch(30.56, 68.34, 299.23°)
OKLaboklab(41.49% 0.0078 -0.1722)
OKLCHoklch(41.49% 0.172 272.6)
XYZxyz(9.7524, 6.4682, 37.2862)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA7 #A79E31
analogous
#3175A7 #313AA7 #6331A7
triadic
#313AA7 #A7313A #3AA731
tetradic
#313AA7 #A73175 #A79E31 #31A763
square
#313AA7 #A73175 #A79E31 #31A763
split-complementary
#313AA7 #A76331 #75A731
monochromatic
#151948 #232A78 #313AA7 #4B55CA #7A81D8

Accessibility & contrast

On white

9.16
#313AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#313AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA7
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA7#FFFFFF#000000##FFFFFF
##313AA71.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313aa7;
/* rgb */ color: rgb(49, 58, 167);
/* oklch */ color: oklch(41.5% 0.172 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a70c2',
    500: '#313aa7',
    950: '#000000',
  },
}
SCSS
$custom: #313aa7;
$custom-light: #7a70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa7",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 167
  },
  "hsl": {
    "h": 235.424,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41491,
    "c": 0.17243,
    "h": 272.6
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#313AA7
secondary
#C1BB73
accent
#D34ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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