#315BBC#315BBC

#315BBC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.160 H 263.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#315BBC
RGBrgb(49, 91, 188)
HSLhsl(222, 59%, 46%)
HSVhsv(222, 74%, 74%)
CMYKcmyk(73.9%, 51.6%, 0%, 26.3%)
CIE-LABlab(40.84, 19.57, -55.37)
CIE-LCHlch(40.84, 58.72, 289.47°)
OKLaboklab(49.69% -0.0171 -0.1593)
OKLCHoklch(49.69% 0.16 263.9)
XYZxyz(14.0816, 11.7644, 49.0958)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BBC #BC9231
analogous
#31A1BC #315BBC #4D31BC
triadic
#315BBC #BC315B #5BBC31
tetradic
#315BBC #BC31A1 #BC9231 #31BC4D
square
#315BBC #BC31A1 #BC9231 #31BC4D
split-complementary
#315BBC #BC4D31 #A1BC31
monochromatic
#182C5B #24448B #315BBC #577DD3 #88A2E0

Accessibility & contrast

On white

6.26
#315BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#315BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BBC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BBC#FFFFFF#000000##FFFFFF
##315BBC1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C67BF
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315bbc;
/* rgb */ color: rgb(49, 91, 188);
/* oklch */ color: oklch(49.7% 0.160 263.9);
Tailwind
colors: {
  custom: {
    50: '#7c88d1',
    500: '#315bbc',
    950: '#000000',
  },
}
SCSS
$custom: #315bbc;
$custom-light: #7c88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#315bbc",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 188
  },
  "hsl": {
    "h": 221.871,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49685,
    "c": 0.16017,
    "h": 263.9
  },
  "luminance": 0.11766
}

Semantic roles & 50–950 ramp

primary
#315BBC
secondary
#CAB37F
accent
#B346E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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