#315FAC#315FAC

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

Color values

HEX#315FAC
RGBrgb(49, 95, 172)
HSLhsl(218, 56%, 43%)
HSVhsv(218, 72%, 67%)
CMYKcmyk(71.5%, 44.8%, 0%, 32.5%)
CIE-LABlab(40.92, 10.96, -45.85)
CIE-LCHlch(40.92, 47.14, 283.44°)
OKLaboklab(49.41% -0.0229 -0.1312)
OKLCHoklch(49.41% 0.133 260.1)
XYZxyz(12.8025, 11.8146, 40.6275)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FAC #AC7E31
analogous
#319CAC #315FAC #4031AC
triadic
#315FAC #AC315F #5FAC31
tetradic
#315FAC #AC319C #AC7E31 #31AC40
square
#315FAC #AC319C #AC7E31 #31AC40
split-complementary
#315FAC #AC4031 #9CAC31
monochromatic
#162A4D #23457C #315FAC #4E7DCC #7DA0DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315FAC#FFFFFF#000000##FFFFFF
##315FAC1.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)
#3967AF
Deuteranopia (green-blind)
#225BAA
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315fac;
/* rgb */ color: rgb(49, 95, 172);
/* oklch */ color: oklch(49.4% 0.133 260.1);
Tailwind
colors: {
  custom: {
    50: '#788bc5',
    500: '#315fac',
    950: '#000000',
  },
}
SCSS
$custom: #315fac;
$custom-light: #788bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#315fac",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 217.561,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4941,
    "c": 0.13317,
    "h": 260.1
  },
  "luminance": 0.11816
}

Semantic roles & 50–950 ramp

primary
#315FAC
secondary
#C3A676
accent
#A749DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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