#313EB0#313EB0

#313EB0 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.180 H 271.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#313EB0
RGBrgb(49, 62, 176)
HSLhsl(234, 56%, 44%)
HSVhsv(234, 72%, 69%)
CMYKcmyk(72.2%, 64.8%, 0%, 31%)
CIE-LABlab(32.33, 34.04, -62.14)
CIE-LCHlch(32.33, 70.85, 298.71°)
OKLaboklab(43.03% 0.0044 -0.1795)
OKLCHoklch(43.03% 0.18 271.4)
XYZxyz(10.8231, 7.2317, 41.8913)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EB0 #B0A331
analogous
#317EB0 #313EB0 #6431B0
triadic
#313EB0 #B0313E #3EB031
tetradic
#313EB0 #B0317E #B0A331 #31B064
square
#313EB0 #B0317E #B0A331 #31B064
split-complementary
#313EB0 #B06431 #7EB031
monochromatic
#161C50 #242D80 #313EB0 #505DCE #8089DC

Accessibility & contrast

On white

8.58
#313EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#313EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EB0
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EB0#FFFFFF#000000##FFFFFF
##313EB01.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313eb0;
/* rgb */ color: rgb(49, 62, 176);
/* oklch */ color: oklch(43.0% 0.180 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b73c9',
    500: '#313eb0',
    950: '#000000',
  },
}
SCSS
$custom: #313eb0;
$custom-light: #7b73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313eb0",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 176
  },
  "hsl": {
    "h": 233.858,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43028,
    "c": 0.17959,
    "h": 271.4
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#313EB0
secondary
#C5BD78
accent
#D048E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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