#313EA0#313EA0

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

Color values

HEX#313EA0
RGBrgb(49, 62, 160)
HSLhsl(233, 53%, 41%)
HSVhsv(233, 69%, 63%)
CMYKcmyk(69.4%, 61.2%, 0%, 37.3%)
CIE-LABlab(30.96, 28.25, -54.77)
CIE-LCHlch(30.96, 61.62, 297.28°)
OKLaboklab(41.6% 0.0051 -0.1579)
OKLCHoklch(41.6% 0.158 271.8)
XYZxyz(9.3323, 6.6354, 34.0398)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA0 #A09331
analogous
#3175A0 #313EA0 #5B31A0
triadic
#313EA0 #A0313E #3EA031
tetradic
#313EA0 #A03175 #A09331 #31A05B
square
#313EA0 #A03175 #A09331 #31A05B
split-complementary
#313EA0 #A05B31 #75A031
monochromatic
#141A42 #232C71 #313EA0 #4756C7 #7681D5

Accessibility & contrast

On white

9.02
#313EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#313EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EA0
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EA0#FFFFFF#000000##FFFFFF
##313EA01.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ea0;
/* rgb */ color: rgb(49, 62, 160);
/* oklch */ color: oklch(41.6% 0.158 271.8);
Tailwind
colors: {
  custom: {
    50: '#7873bd',
    500: '#313ea0',
    950: '#000000',
  },
}
SCSS
$custom: #313ea0;
$custom-light: #7873bd;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea0",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 160
  },
  "hsl": {
    "h": 232.973,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41598,
    "c": 0.15801,
    "h": 271.8
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#313EA0
secondary
#BDB470
accent
#CC4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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