#315EBB#315EBB

#315EBB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.155 H 262.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#315EBB
RGBrgb(49, 94, 187)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 74%, 73%)
CMYKcmyk(73.8%, 49.7%, 0%, 26.7%)
CIE-LABlab(41.60, 17.25, -53.55)
CIE-LCHlch(41.60, 56.26, 287.85°)
OKLaboklab(50.24% -0.0197 -0.1539)
OKLCHoklch(50.24% 0.155 262.7)
XYZxyz(14.2358, 12.2447, 48.6173)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EBB #BB8E31
analogous
#31A3BB #315EBB #4931BB
triadic
#315EBB #BB315E #5EBB31
tetradic
#315EBB #BB31A3 #BB8E31 #31BB49
square
#315EBB #BB31A3 #BB8E31 #31BB49
split-complementary
#315EBB #BB4931 #A3BB31
monochromatic
#182D5A #24468B #315EBB #567FD3 #87A4E0

Accessibility & contrast

On white

6.09
#315EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#315EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EBB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EBB#FFFFFF#000000##FFFFFF
##315EBB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2769BE
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315ebb;
/* rgb */ color: rgb(49, 94, 187);
/* oklch */ color: oklch(50.2% 0.155 262.7);
Tailwind
colors: {
  custom: {
    50: '#7c8bd0',
    500: '#315ebb',
    950: '#000000',
  },
}
SCSS
$custom: #315ebb;
$custom-light: #7c8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#315ebb",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 187
  },
  "hsl": {
    "h": 220.435,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.15511,
    "h": 262.7
  },
  "luminance": 0.12246
}

Semantic roles & 50–950 ramp

primary
#315EBB
secondary
#C9B17F
accent
#AF46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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