#315BBA#315BBA

#315BBA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.157 H 263.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#315BBA
RGBrgb(49, 91, 186)
HSLhsl(222, 58%, 46%)
HSVhsv(222, 74%, 73%)
CMYKcmyk(73.7%, 51.1%, 0%, 27.1%)
CIE-LABlab(40.70, 18.82, -54.42)
CIE-LCHlch(40.70, 57.58, 289.08°)
OKLaboklab(49.54% -0.0173 -0.1565)
OKLCHoklch(49.54% 0.157 263.7)
XYZxyz(13.8675, 11.6788, 47.9682)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BBA #BA9031
analogous
#319FBA #315BBA #4B31BA
triadic
#315BBA #BA315B #5BBA31
tetradic
#315BBA #BA319F #BA9031 #31BA4B
square
#315BBA #BA319F #BA9031 #31BA4B
split-complementary
#315BBA #BA4B31 #9FBA31
monochromatic
#172C59 #24438A #315BBA #567CD2 #86A1DF

Accessibility & contrast

On white

6.29
#315BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#315BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BBA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BBA#FFFFFF#000000##FFFFFF
##315BBA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315bba;
/* rgb */ color: rgb(49, 91, 186);
/* oklch */ color: oklch(49.5% 0.157 263.7);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#315bba',
    950: '#000000',
  },
}
SCSS
$custom: #315bba;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#315bba",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 221.606,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49535,
    "c": 0.15743,
    "h": 263.7
  },
  "luminance": 0.1168
}

Semantic roles & 50–950 ramp

primary
#315BBA
secondary
#C9B27E
accent
#B246E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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