#315BB6#315BB6

#315BB6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.152 H 263.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#315BB6
RGBrgb(49, 91, 182)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(73.1%, 50%, 0%, 28.6%)
CIE-LABlab(40.43, 17.32, -52.52)
CIE-LCHlch(40.43, 55.30, 288.25°)
OKLaboklab(49.24% -0.0178 -0.1509)
OKLCHoklch(49.24% 0.152 263.3)
XYZxyz(13.4482, 11.5111, 45.7600)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB6 #B68C31
analogous
#319DB6 #315BB6 #4A31B6
triadic
#315BB6 #B6315B #5BB631
tetradic
#315BB6 #B6319D #B68C31 #31B64A
square
#315BB6 #B6319D #B68C31 #31B64A
split-complementary
#315BB6 #B64A31 #9DB631
monochromatic
#172B56 #244386 #315BB6 #537BD1 #84A0DE

Accessibility & contrast

On white

6.36
#315BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#315BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB6#FFFFFF#000000##FFFFFF
##315BB61.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2666B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315bb6;
/* rgb */ color: rgb(49, 91, 182);
/* oklch */ color: oklch(49.2% 0.152 263.3);
Tailwind
colors: {
  custom: {
    50: '#7b88cc',
    500: '#315bb6',
    950: '#000000',
  },
}
SCSS
$custom: #315bb6;
$custom-light: #7b88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb6",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 182
  },
  "hsl": {
    "h": 221.053,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4924,
    "c": 0.15192,
    "h": 263.3
  },
  "luminance": 0.11513
}

Semantic roles & 50–950 ramp

primary
#315BB6
secondary
#C7AF7C
accent
#B047E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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