#313AB6#313AB6

#313AB6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.192 H 271.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#313AB6
RGBrgb(49, 58, 182)
HSLhsl(236, 58%, 45%)
HSVhsv(236, 73%, 71%)
CMYKcmyk(73.1%, 68.1%, 0%, 28.6%)
CIE-LABlab(31.93, 38.67, -66.35)
CIE-LCHlch(31.93, 76.80, 300.24°)
OKLaboklab(42.91% 0.0065 -0.1919)
OKLCHoklch(42.91% 0.192 271.9)
XYZxyz(11.2203, 7.0553, 45.0174)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB6 #B6AD31
analogous
#317CB6 #313AB6 #6B31B6
triadic
#313AB6 #B6313A #3AB631
tetradic
#313AB6 #B6317C #B6AD31 #31B66B
square
#313AB6 #B6317C #B6AD31 #31B66B
split-complementary
#313AB6 #B66B31 #7CB631
monochromatic
#171B56 #242B86 #313AB6 #535CD1 #848ADE

Accessibility & contrast

On white

8.71
#313AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#313AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB6
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB6#FFFFFF#000000##FFFFFF
##313AB61.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0045B4
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313ab6;
/* rgb */ color: rgb(49, 58, 182);
/* oklch */ color: oklch(42.9% 0.192 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d70cd',
    500: '#313ab6',
    950: '#000000',
  },
}
SCSS
$custom: #313ab6;
$custom-light: #7d70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab6",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 235.94,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42906,
    "c": 0.192,
    "h": 271.9
  },
  "luminance": 0.07056
}

Semantic roles & 50–950 ramp

primary
#313AB6
secondary
#C7C27C
accent
#D647E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #313AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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