#313CA4#313CA4

#313CA4 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.166 H 272.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#313CA4
RGBrgb(49, 60, 164)
HSLhsl(234, 54%, 42%)
HSVhsv(234, 70%, 64%)
CMYKcmyk(70.1%, 63.4%, 0%, 35.7%)
CIE-LABlab(30.79, 31.00, -57.46)
CIE-LCHlch(30.79, 65.29, 298.35°)
OKLaboklab(41.58% 0.0065 -0.1658)
OKLCHoklch(41.58% 0.166 272.3)
XYZxyz(9.5811, 6.5641, 35.8768)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA4 #A49931
analogous
#3176A4 #313CA4 #6031A4
triadic
#313CA4 #A4313C #3CA431
tetradic
#313CA4 #A43176 #A49931 #31A460
square
#313CA4 #A43176 #A49931 #31A460
split-complementary
#313CA4 #A46031 #76A431
monochromatic
#151A46 #232B75 #313CA4 #4956C9 #7982D7

Accessibility & contrast

On white

9.08
#313CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313CA4
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA4#FFFFFF#000000##FFFFFF
##313CA41.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ca4;
/* rgb */ color: rgb(49, 60, 164);
/* oklch */ color: oklch(41.6% 0.166 272.3);
Tailwind
colors: {
  custom: {
    50: '#7971c0',
    500: '#313ca4',
    950: '#000000',
  },
}
SCSS
$custom: #313ca4;
$custom-light: #7971c0;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca4",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 164
  },
  "hsl": {
    "h": 234.261,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.16597,
    "h": 272.3
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#313CA4
secondary
#BFB872
accent
#CF4ADD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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