#313BB5#313BB5

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

Color values

HEX#313BB5
RGBrgb(49, 59, 181)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(72.9%, 67.4%, 0%, 29%)
CIE-LABlab(32.07, 37.70, -65.53)
CIE-LCHlch(32.07, 75.61, 299.91°)
OKLaboklab(42.98% 0.006 -0.1895)
OKLCHoklch(42.98% 0.19 271.8)
XYZxyz(11.1683, 7.1160, 44.4920)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB5 #B5AB31
analogous
#317DB5 #313BB5 #6931B5
triadic
#313BB5 #B5313B #3BB531
tetradic
#313BB5 #B5317D #B5AB31 #31B569
square
#313BB5 #B5317D #B5AB31 #31B569
split-complementary
#313BB5 #B56931 #7DB531
monochromatic
#171C55 #242B85 #313BB5 #535CD0 #838ADD

Accessibility & contrast

On white

8.67
#313BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BB5
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BB5#FFFFFF#000000##FFFFFF
##313BB51.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313bb5;
/* rgb */ color: rgb(49, 59, 181);
/* oklch */ color: oklch(43.0% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d71cc',
    500: '#313bb5',
    950: '#000000',
  },
}
SCSS
$custom: #313bb5;
$custom-light: #7d71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb5",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 235.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42977,
    "c": 0.18959,
    "h": 271.8
  },
  "luminance": 0.07117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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