#315CB5#315CB5

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

Color values

HEX#315CB5
RGBrgb(49, 92, 181)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(72.9%, 49.2%, 0%, 29%)
CIE-LABlab(40.64, 16.29, -51.59)
CIE-LCHlch(40.64, 54.10, 287.52°)
OKLaboklab(49.38% -0.0188 -0.1481)
OKLCHoklch(49.38% 0.149 262.8)
XYZxyz(13.4313, 11.6420, 45.2464)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB5 #B58A31
analogous
#319EB5 #315CB5 #4831B5
triadic
#315CB5 #B5315C #5CB531
tetradic
#315CB5 #B5319E #B58A31 #31B548
square
#315CB5 #B5319E #B58A31 #31B548
split-complementary
#315CB5 #B54831 #9EB531
monochromatic
#172B55 #244485 #315CB5 #537CD0 #83A0DD

Accessibility & contrast

On white

6.31
#315CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#315CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CB5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB5#FFFFFF#000000##FFFFFF
##315CB51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315cb5;
/* rgb */ color: rgb(49, 92, 181);
/* oklch */ color: oklch(49.4% 0.149 262.8);
Tailwind
colors: {
  custom: {
    50: '#7a89cc',
    500: '#315cb5',
    950: '#000000',
  },
}
SCSS
$custom: #315cb5;
$custom-light: #7a89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb5",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 220.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49382,
    "c": 0.14931,
    "h": 262.8
  },
  "luminance": 0.11643
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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