#315FBA#315FBA

#315FBA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.153 H 262.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#315FBA
RGBrgb(49, 95, 186)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 74%, 73%)
CMYKcmyk(73.7%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.82, 16.22, -52.62)
CIE-LCHlch(41.82, 55.07, 287.13°)
OKLaboklab(50.39% -0.0206 -0.1511)
OKLCHoklch(50.39% 0.153 262.2)
XYZxyz(14.2186, 12.3810, 48.0853)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FBA #BA8C31
analogous
#31A3BA #315FBA #4731BA
triadic
#315FBA #BA315F #5FBA31
tetradic
#315FBA #BA31A3 #BA8C31 #31BA47
square
#315FBA #BA31A3 #BA8C31 #31BA47
split-complementary
#315FBA #BA4731 #A3BA31
monochromatic
#172E59 #24468A #315FBA #5680D2 #86A4DF

Accessibility & contrast

On white

6.04
#315FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#315FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FBA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FBA#FFFFFF#000000##FFFFFF
##315FBA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BD
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315fba;
/* rgb */ color: rgb(49, 95, 186);
/* oklch */ color: oklch(50.4% 0.153 262.2);
Tailwind
colors: {
  custom: {
    50: '#7b8bcf',
    500: '#315fba',
    950: '#000000',
  },
}
SCSS
$custom: #315fba;
$custom-light: #7b8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#315fba",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 219.854,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50386,
    "c": 0.15252,
    "h": 262.2
  },
  "luminance": 0.12383
}

Semantic roles & 50–950 ramp

primary
#315FBA
secondary
#C9B07E
accent
#AD46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #315FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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