#313EB2#313EB2

#313EB2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.182 H 271.4°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#313EB2
RGBrgb(49, 62, 178)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 72%, 70%)
CMYKcmyk(72.5%, 65.2%, 0%, 30.2%)
CIE-LABlab(32.51, 34.75, -63.04)
CIE-LCHlch(32.51, 71.98, 298.87°)
OKLaboklab(43.21% 0.0043 -0.1822)
OKLCHoklch(43.21% 0.182 271.4)
XYZxyz(11.0224, 7.3114, 42.9412)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EB2 #B2A531
analogous
#317FB2 #313EB2 #6431B2
triadic
#313EB2 #B2313E #3EB231
tetradic
#313EB2 #B2317F #B2A531 #31B264
square
#313EB2 #B2317F #B2A531 #31B264
split-complementary
#313EB2 #B26431 #7FB231
monochromatic
#171D52 #242D82 #313EB2 #515ECF #818ADC

Accessibility & contrast

On white

8.53
#313EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#313EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EB2
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EB2#FFFFFF#000000##FFFFFF
##313EB21.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313eb2;
/* rgb */ color: rgb(49, 62, 178);
/* oklch */ color: oklch(43.2% 0.182 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c73ca',
    500: '#313eb2',
    950: '#000000',
  },
}
SCSS
$custom: #313eb2;
$custom-light: #7c73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#313eb2",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 233.953,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43212,
    "c": 0.18222,
    "h": 271.4
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#313EB2
secondary
#C5BE79
accent
#D148E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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