#315BB8#315BB8

#315BB8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.155 H 263.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#315BB8
RGBrgb(49, 91, 184)
HSLhsl(221, 58%, 46%)
HSVhsv(221, 73%, 72%)
CMYKcmyk(73.4%, 50.5%, 0%, 27.8%)
CIE-LABlab(40.56, 18.07, -53.47)
CIE-LCHlch(40.56, 56.44, 288.67°)
OKLaboklab(49.39% -0.0175 -0.1537)
OKLCHoklch(49.39% 0.155 263.5)
XYZxyz(13.6564, 11.5944, 46.8563)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB8 #B88E31
analogous
#319EB8 #315BB8 #4A31B8
triadic
#315BB8 #B8315B #5BB831
tetradic
#315BB8 #B8319E #B88E31 #31B84A
square
#315BB8 #B8319E #B88E31 #31B84A
split-complementary
#315BB8 #B84A31 #9EB831
monochromatic
#172B57 #244388 #315BB8 #557BD2 #85A1DE

Accessibility & contrast

On white

6.33
#315BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#315BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB8
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB8#FFFFFF#000000##FFFFFF
##315BB81.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315bb8;
/* rgb */ color: rgb(49, 91, 184);
/* oklch */ color: oklch(49.4% 0.155 263.5);
Tailwind
colors: {
  custom: {
    50: '#7b88ce',
    500: '#315bb8',
    950: '#000000',
  },
}
SCSS
$custom: #315bb8;
$custom-light: #7b88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb8",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 221.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49387,
    "c": 0.15469,
    "h": 263.5
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#315BB8
secondary
#C8B17D
accent
#B147E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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