#313EB5#313EB5

#313EB5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.5% C 0.186 H 271.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#313EB5
RGBrgb(49, 62, 181)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(72.9%, 65.7%, 0%, 29%)
CIE-LABlab(32.77, 35.82, -64.38)
CIE-LCHlch(32.77, 73.67, 299.09°)
OKLaboklab(43.49% 0.0041 -0.1861)
OKLCHoklch(43.49% 0.186 271.3)
XYZxyz(11.3269, 7.4333, 44.5449)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EB5 #B5A831
analogous
#3180B5 #313EB5 #6631B5
triadic
#313EB5 #B5313E #3EB531
tetradic
#313EB5 #B53180 #B5A831 #31B566
square
#313EB5 #B53180 #B5A831 #31B566
split-complementary
#313EB5 #B56631 #80B531
monochromatic
#171D55 #242E85 #313EB5 #535FD0 #838CDD

Accessibility & contrast

On white

8.44
#313EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#313EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EB5
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EB5#FFFFFF#000000##FFFFFF
##313EB51.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313eb5;
/* rgb */ color: rgb(49, 62, 181);
/* oklch */ color: oklch(43.5% 0.186 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c73cc',
    500: '#313eb5',
    950: '#000000',
  },
}
SCSS
$custom: #313eb5;
$custom-light: #7c73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313eb5",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 234.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4349,
    "c": 0.18615,
    "h": 271.3
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#313EB5
secondary
#C7BF7B
accent
#D247E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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