#315CBB#315CBB

#315CBB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.158 H 263.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#315CBB
RGBrgb(49, 92, 187)
HSLhsl(221, 58%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(73.8%, 50.8%, 0%, 26.7%)
CIE-LABlab(41.05, 18.55, -54.45)
CIE-LCHlch(41.05, 57.52, 288.81°)
OKLaboklab(49.82% -0.018 -0.1565)
OKLCHoklch(49.82% 0.158 263.4)
XYZxyz(14.0602, 11.8936, 48.5588)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CBB #BB9031
analogous
#31A1BB #315CBB #4B31BB
triadic
#315CBB #BB315C #5CBB31
tetradic
#315CBB #BB31A1 #BB9031 #31BB4B
square
#315CBB #BB31A1 #BB9031 #31BB4B
split-complementary
#315CBB #BB4B31 #A1BB31
monochromatic
#182C5A #24448B #315CBB #567DD3 #87A3E0

Accessibility & contrast

On white

6.21
#315CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#315CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CBB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CBB#FFFFFF#000000##FFFFFF
##315CBB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315cbb;
/* rgb */ color: rgb(49, 92, 187);
/* oklch */ color: oklch(49.8% 0.158 263.4);
Tailwind
colors: {
  custom: {
    50: '#7c89d0',
    500: '#315cbb',
    950: '#000000',
  },
}
SCSS
$custom: #315cbb;
$custom-light: #7c89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#315cbb",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 221.304,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4982,
    "c": 0.15757,
    "h": 263.4
  },
  "luminance": 0.11895
}

Semantic roles & 50–950 ramp

primary
#315CBB
secondary
#C9B27F
accent
#B146E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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