#315EBA#315EBA

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

Color values

HEX#315EBA
RGBrgb(49, 94, 186)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 74%, 73%)
CMYKcmyk(73.7%, 49.5%, 0%, 27.1%)
CIE-LABlab(41.54, 16.87, -53.07)
CIE-LCHlch(41.54, 55.69, 287.63°)
OKLaboklab(50.17% -0.0198 -0.1525)
OKLCHoklch(50.17% 0.154 262.6)
XYZxyz(14.1291, 12.2020, 48.0554)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EBA #BA8D31
analogous
#31A2BA #315EBA #4831BA
triadic
#315EBA #BA315E #5EBA31
tetradic
#315EBA #BA31A2 #BA8D31 #31BA48
square
#315EBA #BA31A2 #BA8D31 #31BA48
split-complementary
#315EBA #BA4831 #A2BA31
monochromatic
#172D59 #24468A #315EBA #567FD2 #86A3DF

Accessibility & contrast

On white

6.10
#315EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#315EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EBA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EBA#FFFFFF#000000##FFFFFF
##315EBA1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315eba;
/* rgb */ color: rgb(49, 94, 186);
/* oklch */ color: oklch(50.2% 0.154 262.6);
Tailwind
colors: {
  custom: {
    50: '#7b8bcf',
    500: '#315eba',
    950: '#000000',
  },
}
SCSS
$custom: #315eba;
$custom-light: #7b8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#315eba",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 220.292,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50172,
    "c": 0.15374,
    "h": 262.6
  },
  "luminance": 0.12204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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