#315CBA#315CBA

#315CBA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.156 H 263.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#315CBA
RGBrgb(49, 92, 186)
HSLhsl(221, 58%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(73.7%, 50.5%, 0%, 27.1%)
CIE-LABlab(40.98, 18.17, -53.97)
CIE-LCHlch(40.98, 56.95, 288.61°)
OKLaboklab(49.75% -0.0181 -0.1551)
OKLCHoklch(49.75% 0.156 263.3)
XYZxyz(13.9535, 11.8509, 47.9969)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CBA #BA8F31
analogous
#31A0BA #315CBA #4A31BA
triadic
#315CBA #BA315C #5CBA31
tetradic
#315CBA #BA31A0 #BA8F31 #31BA4A
square
#315CBA #BA31A0 #BA8F31 #31BA4A
split-complementary
#315CBA #BA4A31 #A0BA31
monochromatic
#172C59 #24448A #315CBA #567DD2 #86A2DF

Accessibility & contrast

On white

6.23
#315CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#315CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CBA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CBA#FFFFFF#000000##FFFFFF
##315CBA1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2367BD
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315cba;
/* rgb */ color: rgb(49, 92, 186);
/* oklch */ color: oklch(49.7% 0.156 263.3);
Tailwind
colors: {
  custom: {
    50: '#7b89cf',
    500: '#315cba',
    950: '#000000',
  },
}
SCSS
$custom: #315cba;
$custom-light: #7b89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#315cba",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 221.168,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49747,
    "c": 0.15619,
    "h": 263.3
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#315CBA
secondary
#C9B17E
accent
#B146E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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