#313CB4#313CB4

#313CB4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.187 H 271.7°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#313CB4
RGBrgb(49, 60, 180)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(72.8%, 66.7%, 0%, 29.4%)
CIE-LABlab(32.21, 36.73, -64.71)
CIE-LCHlch(32.21, 74.40, 299.58°)
OKLaboklab(43.05% 0.0055 -0.1871)
OKLCHoklch(43.05% 0.187 271.7)
XYZxyz(11.1179, 7.1788, 43.9709)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB4 #B4A931
analogous
#317DB4 #313CB4 #6831B4
triadic
#313CB4 #B4313C #3CB431
tetradic
#313CB4 #B4317D #B4A931 #31B468
square
#313CB4 #B4317D #B4A931 #31B468
split-complementary
#313CB4 #B46831 #7DB431
monochromatic
#171C54 #242C84 #313CB4 #525DD0 #828ADD

Accessibility & contrast

On white

8.62
#313CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#313CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB4
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB4#FFFFFF#000000##FFFFFF
##313CB41.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313cb4;
/* rgb */ color: rgb(49, 60, 180);
/* oklch */ color: oklch(43.1% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c72cc',
    500: '#313cb4',
    950: '#000000',
  },
}
SCSS
$custom: #313cb4;
$custom-light: #7c72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb4",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 234.962,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43051,
    "c": 0.18716,
    "h": 271.7
  },
  "luminance": 0.0718
}

Semantic roles & 50–950 ramp

primary
#313CB4
secondary
#C6C07B
accent
#D447E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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