#315DB5#315DB5

#315DB5 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.148 H 262.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#315DB5
RGBrgb(49, 93, 181)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(72.9%, 48.6%, 0%, 29%)
CIE-LABlab(40.92, 15.64, -51.14)
CIE-LCHlch(40.92, 53.47, 287.00°)
OKLaboklab(49.6% -0.0196 -0.1468)
OKLCHoklch(49.6% 0.148 262.4)
XYZxyz(13.5185, 11.8164, 45.2754)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB5 #B58931
analogous
#319FB5 #315DB5 #4731B5
triadic
#315DB5 #B5315D #5DB531
tetradic
#315DB5 #B5319F #B58931 #31B547
square
#315DB5 #B5319F #B58931 #31B547
split-complementary
#315DB5 #B54731 #9FB531
monochromatic
#172C55 #244485 #315DB5 #537DD0 #83A1DD

Accessibility & contrast

On white

6.24
#315DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#315DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB5#FFFFFF#000000##FFFFFF
##315DB51.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C67B8
Deuteranopia (green-blind)
#005BB3
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315db5;
/* rgb */ color: rgb(49, 93, 181);
/* oklch */ color: oklch(49.6% 0.148 262.4);
Tailwind
colors: {
  custom: {
    50: '#7a8acc',
    500: '#315db5',
    950: '#000000',
  },
}
SCSS
$custom: #315db5;
$custom-light: #7a8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#315db5",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 220,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49597,
    "c": 0.14809,
    "h": 262.4
  },
  "luminance": 0.11818
}

Semantic roles & 50–950 ramp

primary
#315DB5
secondary
#C7AE7B
accent
#AD47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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