#315DB6#315DB6

#315DB6 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.149 H 262.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#315DB6
RGBrgb(49, 93, 182)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.1%, 48.9%, 0%, 28.6%)
CIE-LABlab(40.99, 16.02, -51.62)
CIE-LCHlch(40.99, 54.04, 287.24°)
OKLaboklab(49.67% -0.0195 -0.1482)
OKLCHoklch(49.67% 0.149 262.5)
XYZxyz(13.6215, 11.8576, 45.8178)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB6 #B68A31
analogous
#31A0B6 #315DB6 #4731B6
triadic
#315DB6 #B6315D #5DB631
tetradic
#315DB6 #B631A0 #B68A31 #31B647
square
#315DB6 #B631A0 #B68A31 #31B647
split-complementary
#315DB6 #B64731 #A0B631
monochromatic
#172C56 #244486 #315DB6 #537DD1 #84A1DE

Accessibility & contrast

On white

6.23
#315DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#315DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB6
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB6#FFFFFF#000000##FFFFFF
##315DB61.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B9
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315db6;
/* rgb */ color: rgb(49, 93, 182);
/* oklch */ color: oklch(49.7% 0.149 262.5);
Tailwind
colors: {
  custom: {
    50: '#7b8acc',
    500: '#315db6',
    950: '#000000',
  },
}
SCSS
$custom: #315db6;
$custom-light: #7b8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#315db6",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 182
  },
  "hsl": {
    "h": 220.15,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49669,
    "c": 0.14947,
    "h": 262.5
  },
  "luminance": 0.11859
}

Semantic roles & 50–950 ramp

primary
#315DB6
secondary
#C7AE7C
accent
#AE47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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