#313CA0#313CA0

#313CA0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.161 H 272.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#313CA0
RGBrgb(49, 60, 160)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 69%, 63%)
CMYKcmyk(69.4%, 62.5%, 0%, 37.3%)
CIE-LABlab(30.45, 29.56, -55.60)
CIE-LCHlch(30.45, 62.97, 297.99°)
OKLaboklab(41.22% 0.0067 -0.1604)
OKLCHoklch(41.22% 0.161 272.4)
XYZxyz(9.2255, 6.4219, 34.0043)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA0 #A09531
analogous
#3173A0 #313CA0 #5D31A0
triadic
#313CA0 #A0313C #3CA031
tetradic
#313CA0 #A03173 #A09531 #31A05D
square
#313CA0 #A03173 #A09531 #31A05D
split-complementary
#313CA0 #A05D31 #73A031
monochromatic
#141942 #232A71 #313CA0 #4754C7 #7680D5

Accessibility & contrast

On white

9.19
#313CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#313CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA0
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA0#FFFFFF#000000##FFFFFF
##313CA01.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ca0;
/* rgb */ color: rgb(49, 60, 160);
/* oklch */ color: oklch(41.2% 0.161 272.4);
Tailwind
colors: {
  custom: {
    50: '#7871bd',
    500: '#313ca0',
    950: '#000000',
  },
}
SCSS
$custom: #313ca0;
$custom-light: #7871bd;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca0",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 160
  },
  "hsl": {
    "h": 234.054,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41222,
    "c": 0.16053,
    "h": 272.4
  },
  "luminance": 0.06423
}

Semantic roles & 50–950 ramp

primary
#313CA0
secondary
#BDB670
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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