#315BB2#315BB2

#315BB2 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.146 H 262.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#315BB2
RGBrgb(49, 91, 178)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 72%, 70%)
CMYKcmyk(72.5%, 48.9%, 0%, 30.2%)
CIE-LABlab(40.16, 15.81, -50.60)
CIE-LCHlch(40.16, 53.01, 287.35°)
OKLaboklab(48.95% -0.0183 -0.1452)
OKLCHoklch(48.95% 0.146 262.8)
XYZxyz(13.0407, 11.3481, 43.6140)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB2 #B28831
analogous
#319CB2 #315BB2 #4831B2
triadic
#315BB2 #B2315B #5BB231
tetradic
#315BB2 #B2319C #B28831 #31B248
square
#315BB2 #B2319C #B28831 #31B248
split-complementary
#315BB2 #B24831 #9CB231
monochromatic
#172A52 #244282 #315BB2 #517ACF #819FDC

Accessibility & contrast

On white

6.42
#315BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#315BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB2#FFFFFF#000000##FFFFFF
##315BB21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315bb2;
/* rgb */ color: rgb(49, 91, 178);
/* oklch */ color: oklch(48.9% 0.146 262.8);
Tailwind
colors: {
  custom: {
    50: '#7a88ca',
    500: '#315bb2',
    950: '#000000',
  },
}
SCSS
$custom: #315bb2;
$custom-light: #7a88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb2",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 220.465,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4895,
    "c": 0.14639,
    "h": 262.8
  },
  "luminance": 0.11349
}

Semantic roles & 50–950 ramp

primary
#315BB2
secondary
#C5AD79
accent
#AE48E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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