#313AB8#313AB8

#313AB8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.195 H 271.8°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#313AB8
RGBrgb(49, 58, 184)
HSLhsl(236, 58%, 46%)
HSVhsv(236, 73%, 72%)
CMYKcmyk(73.4%, 68.5%, 0%, 27.8%)
CIE-LABlab(32.12, 39.37, -67.23)
CIE-LCHlch(32.12, 77.91, 300.35°)
OKLaboklab(43.1% 0.0063 -0.1945)
OKLCHoklch(43.1% 0.195 271.8)
XYZxyz(11.4285, 7.1386, 46.1137)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB8 #B8AF31
analogous
#317DB8 #313AB8 #6B31B8
triadic
#313AB8 #B8313A #3AB831
tetradic
#313AB8 #B8317D #B8AF31 #31B86B
square
#313AB8 #B8317D #B8AF31 #31B86B
split-complementary
#313AB8 #B86B31 #7DB831
monochromatic
#171C57 #242B88 #313AB8 #555DD2 #858BDE

Accessibility & contrast

On white

8.65
#313AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#313AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB8
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB8#FFFFFF#000000##FFFFFF
##313AB81.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313ab8;
/* rgb */ color: rgb(49, 58, 184);
/* oklch */ color: oklch(43.1% 0.195 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d71ce',
    500: '#313ab8',
    950: '#000000',
  },
}
SCSS
$custom: #313ab8;
$custom-light: #7d71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab8",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 236,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43099,
    "c": 0.19455,
    "h": 271.8
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#313AB8
secondary
#C8C37D
accent
#D747E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #313AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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