#315CB4#315CB4

#315CB4 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.148 H 262.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#315CB4
RGBrgb(49, 92, 180)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(72.8%, 48.9%, 0%, 29.4%)
CIE-LABlab(40.58, 15.91, -51.11)
CIE-LCHlch(40.58, 53.53, 287.29°)
OKLaboklab(49.31% -0.0189 -0.1467)
OKLCHoklch(49.31% 0.148 262.7)
XYZxyz(13.3291, 11.6011, 44.7079)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB4 #B48931
analogous
#319EB4 #315CB4 #4731B4
triadic
#315CB4 #B4315C #5CB431
tetradic
#315CB4 #B4319E #B48931 #31B447
square
#315CB4 #B4319E #B48931 #31B447
split-complementary
#315CB4 #B44731 #9EB431
monochromatic
#172B54 #244384 #315CB4 #527CD0 #82A0DD

Accessibility & contrast

On white

6.32
#315CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315CB4
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB4#FFFFFF#000000##FFFFFF
##315CB41.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B7
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315cb4;
/* rgb */ color: rgb(49, 92, 180);
/* oklch */ color: oklch(49.3% 0.148 262.7);
Tailwind
colors: {
  custom: {
    50: '#7a89cb',
    500: '#315cb4',
    950: '#000000',
  },
}
SCSS
$custom: #315cb4;
$custom-light: #7a89cb;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb4",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 220.305,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4931,
    "c": 0.14792,
    "h": 262.7
  },
  "luminance": 0.11603
}

Semantic roles & 50–950 ramp

primary
#315CB4
secondary
#C6AD7B
accent
#AE47E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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