#315FC0#315FC0

#315FC0 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.161 H 262.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#315FC0
RGBrgb(49, 95, 192)
HSLhsl(221, 59%, 47%)
HSVhsv(221, 74%, 75%)
CMYKcmyk(74.5%, 50.5%, 0%, 24.7%)
CIE-LABlab(42.22, 18.48, -55.47)
CIE-LCHlch(42.22, 58.46, 288.42°)
OKLaboklab(50.82% -0.0198 -0.1595)
OKLCHoklch(50.82% 0.161 262.9)
XYZxyz(14.8699, 12.6415, 51.5153)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC0 #C09231
analogous
#31A7C0 #315FC0 #4A31C0
triadic
#315FC0 #C0315F #5FC031
tetradic
#315FC0 #C031A7 #C09231 #31C04A
square
#315FC0 #C031A7 #C09231 #31C04A
split-complementary
#315FC0 #C04A31 #A7C031
monochromatic
#182F5E #25478F #315FC0 #5981D5 #8AA6E1

Accessibility & contrast

On white

5.95
#315FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#315FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC0#FFFFFF#000000##FFFFFF
##315FC01.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236BC4
Deuteranopia (green-blind)
#005DBE
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #315fc0;
/* rgb */ color: rgb(49, 95, 192);
/* oklch */ color: oklch(50.8% 0.161 262.9);
Tailwind
colors: {
  custom: {
    50: '#7d8bd4',
    500: '#315fc0',
    950: '#000000',
  },
}
SCSS
$custom: #315fc0;
$custom-light: #7d8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc0",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 192
  },
  "hsl": {
    "h": 220.699,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50822,
    "c": 0.16072,
    "h": 262.9
  },
  "luminance": 0.12643
}

Semantic roles & 50–950 ramp

primary
#315FC0
secondary
#CBB482
accent
#B045E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #315FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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