#315FBB#315FBB

#315FBB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.154 H 262.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#315FBB
RGBrgb(49, 95, 187)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 74%, 73%)
CMYKcmyk(73.8%, 49.2%, 0%, 26.7%)
CIE-LABlab(41.88, 16.60, -53.10)
CIE-LCHlch(41.88, 55.63, 287.36°)
OKLaboklab(50.46% -0.0205 -0.1525)
OKLCHoklch(50.46% 0.154 262.3)
XYZxyz(14.3253, 12.4237, 48.6471)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FBB #BB8D31
analogous
#31A4BB #315FBB #4831BB
triadic
#315FBB #BB315F #5FBB31
tetradic
#315FBB #BB31A4 #BB8D31 #31BB48
square
#315FBB #BB31A4 #BB8D31 #31BB48
split-complementary
#315FBB #BB4831 #A4BB31
monochromatic
#182E5A #24468B #315FBB #5680D3 #87A4E0

Accessibility & contrast

On white

6.03
#315FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #315FBB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FBB#FFFFFF#000000##FFFFFF
##315FBB1.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABE
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315fbb;
/* rgb */ color: rgb(49, 95, 187);
/* oklch */ color: oklch(50.5% 0.154 262.3);
Tailwind
colors: {
  custom: {
    50: '#7c8bd0',
    500: '#315fbb',
    950: '#000000',
  },
}
SCSS
$custom: #315fbb;
$custom-light: #7c8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#315fbb",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 220,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50458,
    "c": 0.15389,
    "h": 262.3
  },
  "luminance": 0.12425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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