#315FBC#315FBC

#315FBC is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.5% C 0.155 H 262.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#315FBC
RGBrgb(49, 95, 188)
HSLhsl(220, 59%, 46%)
HSVhsv(220, 74%, 74%)
CMYKcmyk(73.9%, 49.5%, 0%, 26.3%)
CIE-LABlab(41.95, 16.97, -53.58)
CIE-LCHlch(41.95, 56.20, 287.58°)
OKLaboklab(50.53% -0.0204 -0.1539)
OKLCHoklch(50.53% 0.155 262.5)
XYZxyz(14.4327, 12.4666, 49.2129)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FBC #BC8E31
analogous
#31A5BC #315FBC #4931BC
triadic
#315FBC #BC315F #5FBC31
tetradic
#315FBC #BC31A5 #BC8E31 #31BC49
square
#315FBC #BC31A5 #BC8E31 #31BC49
split-complementary
#315FBC #BC4931 #A5BC31
monochromatic
#182E5B #24468B #315FBC #5780D3 #88A5E0

Accessibility & contrast

On white

6.01
#315FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#315FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FBC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FBC#FFFFFF#000000##FFFFFF
##315FBC1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296ABF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315fbc;
/* rgb */ color: rgb(49, 95, 188);
/* oklch */ color: oklch(50.5% 0.155 262.5);
Tailwind
colors: {
  custom: {
    50: '#7c8bd1',
    500: '#315fbc',
    950: '#000000',
  },
}
SCSS
$custom: #315fbc;
$custom-light: #7c8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#315fbc",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 220.144,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5053,
    "c": 0.15526,
    "h": 262.5
  },
  "luminance": 0.12468
}

Semantic roles & 50–950 ramp

primary
#315FBC
secondary
#CAB17F
accent
#AE46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #315FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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