#315CB6#315CB6

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

Color values

HEX#315CB6
RGBrgb(49, 92, 182)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(73.1%, 49.5%, 0%, 28.6%)
CIE-LABlab(40.71, 16.67, -52.07)
CIE-LCHlch(40.71, 54.67, 287.75°)
OKLaboklab(49.45% -0.0186 -0.1495)
OKLCHoklch(49.45% 0.151 262.9)
XYZxyz(13.5343, 11.6832, 45.7887)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB6 #B68B31
analogous
#319EB6 #315CB6 #4931B6
triadic
#315CB6 #B6315C #5CB631
tetradic
#315CB6 #B6319E #B68B31 #31B649
square
#315CB6 #B6319E #B68B31 #31B649
split-complementary
#315CB6 #B64931 #9EB631
monochromatic
#172B56 #244486 #315CB6 #537CD1 #84A1DE

Accessibility & contrast

On white

6.29
#315CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#315CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CB6
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB6#FFFFFF#000000##FFFFFF
##315CB61.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315cb6;
/* rgb */ color: rgb(49, 92, 182);
/* oklch */ color: oklch(49.5% 0.151 262.9);
Tailwind
colors: {
  custom: {
    50: '#7b89cc',
    500: '#315cb6',
    950: '#000000',
  },
}
SCSS
$custom: #315cb6;
$custom-light: #7b89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb6",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 220.602,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49454,
    "c": 0.1507,
    "h": 262.9
  },
  "luminance": 0.11685
}

Semantic roles & 50–950 ramp

primary
#315CB6
secondary
#C7AF7C
accent
#AF47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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