#313BB8#313BB8

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

Color values

HEX#313BB8
RGBrgb(49, 59, 184)
HSLhsl(236, 58%, 46%)
HSVhsv(236, 73%, 72%)
CMYKcmyk(73.4%, 67.9%, 0%, 27.8%)
CIE-LABlab(32.35, 38.76, -66.85)
CIE-LCHlch(32.35, 77.27, 300.10°)
OKLaboklab(43.26% 0.0057 -0.1933)
OKLCHoklch(43.26% 0.193 271.7)
XYZxyz(11.4794, 7.2404, 46.1307)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB8 #B8AE31
analogous
#317EB8 #313BB8 #6B31B8
triadic
#313BB8 #B8313B #3BB831
tetradic
#313BB8 #B8317E #B8AE31 #31B86B
square
#313BB8 #B8317E #B8AE31 #31B86B
split-complementary
#313BB8 #B86B31 #7EB831
monochromatic
#171C57 #242C88 #313BB8 #555ED2 #858CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313BB8#FFFFFF#000000##FFFFFF
##313BB81.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)
#0053BC
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313bb8;
/* rgb */ color: rgb(49, 59, 184);
/* oklch */ color: oklch(43.3% 0.193 271.7);
Tailwind
colors: {
  custom: {
    50: '#7d71ce',
    500: '#313bb8',
    950: '#000000',
  },
}
SCSS
$custom: #313bb8;
$custom-light: #7d71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb8",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 184
  },
  "hsl": {
    "h": 235.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43264,
    "c": 0.19343,
    "h": 271.7
  },
  "luminance": 0.07242
}

Semantic roles & 50–950 ramp

primary
#313BB8
secondary
#C8C27D
accent
#D647E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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