#315EB5#315EB5

#315EB5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.147 H 262.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#315EB5
RGBrgb(49, 94, 181)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(72.9%, 48.1%, 0%, 29%)
CIE-LABlab(41.21, 14.99, -50.68)
CIE-LCHlch(41.21, 52.85, 286.48°)
OKLaboklab(49.81% -0.0205 -0.1454)
OKLCHoklch(49.81% 0.147 262)
XYZxyz(13.6068, 11.9931, 45.3049)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB5 #B58831
analogous
#31A0B5 #315EB5 #4631B5
triadic
#315EB5 #B5315E #5EB531
tetradic
#315EB5 #B531A0 #B58831 #31B546
square
#315EB5 #B531A0 #B58831 #31B546
split-complementary
#315EB5 #B54631 #A0B531
monochromatic
#172C55 #244585 #315EB5 #537ED0 #83A2DD

Accessibility & contrast

On white

6.18
#315EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#315EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EB5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB5#FFFFFF#000000##FFFFFF
##315EB51.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E68B8
Deuteranopia (green-blind)
#085BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315eb5;
/* rgb */ color: rgb(49, 94, 181);
/* oklch */ color: oklch(49.8% 0.147 262.0);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#315eb5',
    950: '#000000',
  },
}
SCSS
$custom: #315eb5;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb5",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 219.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49813,
    "c": 0.14686,
    "h": 262
  },
  "luminance": 0.11995
}

Semantic roles & 50–950 ramp

primary
#315EB5
secondary
#C7AD7B
accent
#AC47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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