#315EB8#315EB8

#315EB8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.151 H 262.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#315EB8
RGBrgb(49, 94, 184)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 73%, 72%)
CMYKcmyk(73.4%, 48.9%, 0%, 27.8%)
CIE-LABlab(41.40, 16.12, -52.12)
CIE-LCHlch(41.40, 54.56, 287.18°)
OKLaboklab(50.03% -0.0201 -0.1496)
OKLCHoklch(50.03% 0.151 262.4)
XYZxyz(13.9180, 12.1176, 46.9435)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB8 #B88B31
analogous
#31A1B8 #315EB8 #4731B8
triadic
#315EB8 #B8315E #5EB831
tetradic
#315EB8 #B831A1 #B88B31 #31B847
square
#315EB8 #B831A1 #B88B31 #31B847
split-complementary
#315EB8 #B84731 #A1B831
monochromatic
#172D57 #244588 #315EB8 #557ED2 #85A3DE

Accessibility & contrast

On white

6.13
#315EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#315EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EB8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB8#FFFFFF#000000##FFFFFF
##315EB81.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315eb8;
/* rgb */ color: rgb(49, 94, 184);
/* oklch */ color: oklch(50.0% 0.151 262.4);
Tailwind
colors: {
  custom: {
    50: '#7b8bce',
    500: '#315eb8',
    950: '#000000',
  },
}
SCSS
$custom: #315eb8;
$custom-light: #7b8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb8",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 220,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50028,
    "c": 0.15099,
    "h": 262.4
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#315EB8
secondary
#C8AF7D
accent
#AE47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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