#313BB6#313BB6

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

Color values

HEX#313BB6
RGBrgb(49, 59, 182)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.1%, 67.6%, 0%, 28.6%)
CIE-LABlab(32.16, 38.05, -65.98)
CIE-LCHlch(32.16, 76.16, 299.98°)
OKLaboklab(43.07% 0.0059 -0.1908)
OKLCHoklch(43.07% 0.191 271.8)
XYZxyz(11.2712, 7.1571, 45.0344)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB6 #B6AC31
analogous
#317DB6 #313BB6 #6A31B6
triadic
#313BB6 #B6313B #3BB631
tetradic
#313BB6 #B6317D #B6AC31 #31B66A
square
#313BB6 #B6317D #B6AC31 #31B66A
split-complementary
#313BB6 #B66A31 #7DB631
monochromatic
#171C56 #242B86 #313BB6 #535DD1 #848ADE

Accessibility & contrast

On white

8.64
#313BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313BB6
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BB6#FFFFFF#000000##FFFFFF
##313BB61.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313bb6;
/* rgb */ color: rgb(49, 59, 182);
/* oklch */ color: oklch(43.1% 0.191 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d71cd',
    500: '#313bb6',
    950: '#000000',
  },
}
SCSS
$custom: #313bb6;
$custom-light: #7d71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb6",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 182
  },
  "hsl": {
    "h": 235.489,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43072,
    "c": 0.19087,
    "h": 271.8
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#313BB6
secondary
#C7C17C
accent
#D547E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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