#315CB7#315CB7

#315CB7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.152 H 263.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#315CB7
RGBrgb(49, 92, 183)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 72%)
CMYKcmyk(73.2%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.78, 17.04, -52.55)
CIE-LCHlch(40.78, 55.24, 287.97°)
OKLaboklab(49.53% -0.0185 -0.1509)
OKLCHoklch(49.53% 0.152 263)
XYZxyz(13.6380, 11.7247, 46.3349)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB7 #B78C31
analogous
#319FB7 #315CB7 #4931B7
triadic
#315CB7 #B7315C #5CB731
tetradic
#315CB7 #B7319F #B78C31 #31B749
square
#315CB7 #B7319F #B78C31 #31B749
split-complementary
#315CB7 #B74931 #9FB731
monochromatic
#172B56 #244487 #315CB7 #547CD1 #84A1DE

Accessibility & contrast

On white

6.28
#315CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#315CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CB7
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB7#FFFFFF#000000##FFFFFF
##315CB71.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315cb7;
/* rgb */ color: rgb(49, 92, 183);
/* oklch */ color: oklch(49.5% 0.152 263.0);
Tailwind
colors: {
  custom: {
    50: '#7b89cd',
    500: '#315cb7',
    950: '#000000',
  },
}
SCSS
$custom: #315cb7;
$custom-light: #7b89cd;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb7",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 220.746,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.15207,
    "h": 263
  },
  "luminance": 0.11726
}

Semantic roles & 50–950 ramp

primary
#315CB7
secondary
#C8AF7C
accent
#B047E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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