#315FCF#315FCF

#315FCF is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.0% C 0.181 H 264.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#315FCF
RGBrgb(49, 95, 207)
HSLhsl(223, 62%, 50%)
HSVhsv(223, 76%, 81%)
CMYKcmyk(76.3%, 54.1%, 0%, 18.8%)
CIE-LABlab(43.27, 24.10, -62.43)
CIE-LCHlch(43.27, 66.92, 291.11°)
OKLaboklab(51.96% -0.0183 -0.18)
OKLCHoklch(51.96% 0.181 264.2)
XYZxyz(16.6173, 13.3405, 60.7186)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FCF #CFA131
analogous
#31AECF #315FCF #5231CF
triadic
#315FCF #CF315F #5FCF31
tetradic
#315FCF #CF31AE #CFA131 #31CF52
square
#315FCF #CF31AE #CFA131 #31CF52
split-complementary
#315FCF #CF5231 #AECF31
monochromatic
#19316C #25489E #315FCF #6386DB #94ACE6

Accessibility & contrast

On white

5.72
#315FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#315FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FCF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FCF#FFFFFF#000000##FFFFFF
##315FCF1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#005FCD
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #315fcf;
/* rgb */ color: rgb(49, 95, 207);
/* oklch */ color: oklch(52.0% 0.181 264.2);
Tailwind
colors: {
  custom: {
    50: '#808bde',
    500: '#315fcf',
    950: '#000000',
  },
}
SCSS
$custom: #315fcf;
$custom-light: #808bde;
$custom-dark: #000000;
JSON
{
  "hex": "#315fcf",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 207
  },
  "hsl": {
    "h": 222.532,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51957,
    "c": 0.18089,
    "h": 264.2
  },
  "luminance": 0.13342
}

Semantic roles & 50–950 ramp

primary
#315FCF
secondary
#D1BD8B
accent
#B643E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #315FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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