#313CA5#313CA5

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

Color values

HEX#313CA5
RGBrgb(49, 60, 165)
HSLhsl(234, 54%, 42%)
HSVhsv(234, 70%, 65%)
CMYKcmyk(70.3%, 63.6%, 0%, 35.3%)
CIE-LABlab(30.88, 31.36, -57.92)
CIE-LCHlch(30.88, 65.87, 298.44°)
OKLaboklab(41.67% 0.0065 -0.1672)
OKLCHoklch(41.67% 0.167 272.2)
XYZxyz(9.6717, 6.6004, 36.3543)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA5 #A59A31
analogous
#3176A5 #313CA5 #6031A5
triadic
#313CA5 #A5313C #3CA531
tetradic
#313CA5 #A53176 #A59A31 #31A560
square
#313CA5 #A53176 #A59A31 #31A560
split-complementary
#313CA5 #A56031 #76A531
monochromatic
#151A47 #232B76 #313CA5 #4A56C9 #7982D7

Accessibility & contrast

On white

9.05
#313CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#313CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA5
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA5#FFFFFF#000000##FFFFFF
##313CA51.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ca5;
/* rgb */ color: rgb(49, 60, 165);
/* oklch */ color: oklch(41.7% 0.167 272.2);
Tailwind
colors: {
  custom: {
    50: '#7971c1',
    500: '#313ca5',
    950: '#000000',
  },
}
SCSS
$custom: #313ca5;
$custom-light: #7971c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca5",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 234.31,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41668,
    "c": 0.16733,
    "h": 272.2
  },
  "luminance": 0.06601
}

Semantic roles & 50–950 ramp

primary
#313CA5
secondary
#C0B872
accent
#D04ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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