#315FBD#315FBD

#315FBD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.6% C 0.157 H 262.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#315FBD
RGBrgb(49, 95, 189)
HSLhsl(220, 59%, 47%)
HSVhsv(220, 74%, 74%)
CMYKcmyk(74.1%, 49.7%, 0%, 25.9%)
CIE-LABlab(42.02, 17.35, -54.05)
CIE-LCHlch(42.02, 56.77, 287.80°)
OKLaboklab(50.6% -0.0202 -0.1553)
OKLCHoklch(50.6% 0.157 262.6)
XYZxyz(14.5409, 12.5099, 49.7826)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FBD #BD8F31
analogous
#31A5BD #315FBD #4931BD
triadic
#315FBD #BD315F #5FBD31
tetradic
#315FBD #BD31A5 #BD8F31 #31BD49
square
#315FBD #BD31A5 #BD8F31 #31BD49
split-complementary
#315FBD #BD4931 #A5BD31
monochromatic
#182E5C #24478C #315FBD #5880D4 #88A5E0

Accessibility & contrast

On white

6.00
#315FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#315FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FBD
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FBD#FFFFFF#000000##FFFFFF
##315FBD1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286AC0
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315fbd;
/* rgb */ color: rgb(49, 95, 189);
/* oklch */ color: oklch(50.6% 0.157 262.6);
Tailwind
colors: {
  custom: {
    50: '#7c8bd1',
    500: '#315fbd',
    950: '#000000',
  },
}
SCSS
$custom: #315fbd;
$custom-light: #7c8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#315fbd",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 189
  },
  "hsl": {
    "h": 220.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50603,
    "c": 0.15663,
    "h": 262.6
  },
  "luminance": 0.12512
}

Semantic roles & 50–950 ramp

primary
#315FBD
secondary
#CAB280
accent
#AF46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #315FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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