#315BDC#315BDC

#315BDC is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.2% C 0.203 H 265.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#315BDC
RGBrgb(49, 91, 220)
HSLhsl(225, 71%, 53%)
HSVhsv(225, 78%, 86%)
CMYKcmyk(77.7%, 58.6%, 0%, 13.7%)
CIE-LABlab(43.21, 31.49, -69.96)
CIE-LCHlch(43.21, 76.72, 294.23°)
OKLaboklab(52.22% -0.0149 -0.2022)
OKLCHoklch(52.22% 0.203 265.8)
XYZxyz(17.9214, 13.3004, 69.3190)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BDC #DCB231
analogous
#31B1DC #315BDC #5C31DC
triadic
#315BDC #DC315B #5BDC31
tetradic
#315BDC #DC31B1 #DCB231 #31DC5C
square
#315BDC #DC31B1 #DCB231 #31DC5C
split-complementary
#315BDC #DC5C31 #B1DC31
monochromatic
#152F7D #1E42B2 #315BDC #6585E5 #9AAEEE

Accessibility & contrast

On white

5.74
#315BDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#315BDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BDC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BDC#FFFFFF#000000##FFFFFF
##315BDC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#005EDA
Tritanopia (blue-blind)
#007C93
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #315bdc;
/* rgb */ color: rgb(49, 91, 220);
/* oklch */ color: oklch(52.2% 0.203 265.8);
Tailwind
colors: {
  custom: {
    50: '#8388e8',
    500: '#315bdc',
    950: '#000000',
  },
}
SCSS
$custom: #315bdc;
$custom-light: #8388e8;
$custom-dark: #000000;
JSON
{
  "hex": "#315bdc",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 225.263,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5222,
    "c": 0.20272,
    "h": 265.8
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#315BDC
secondary
#D9C78F
accent
#C23AEE
background
#F8F8FE
surface
#F0EFFD
border
#CBCAD5
text
#0D0B16
muted
#7D7C84

Preview Lab

Preview with #315BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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