#315FA8#315FA8

#315FA8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.1% C 0.128 H 259.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#315FA8
RGBrgb(49, 95, 168)
HSLhsl(217, 55%, 43%)
HSVhsv(217, 71%, 66%)
CMYKcmyk(70.8%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.68, 9.46, -43.87)
CIE-LCHlch(40.68, 44.88, 282.17°)
OKLaboklab(49.14% -0.0237 -0.1254)
OKLCHoklch(49.14% 0.128 259.3)
XYZxyz(12.4242, 11.6632, 38.6347)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FA8 #A87A31
analogous
#319AA8 #315FA8 #3F31A8
triadic
#315FA8 #A8315F #5FA831
tetradic
#315FA8 #A8319A #A87A31 #31A83F
square
#315FA8 #A8319A #A87A31 #31A83F
split-complementary
#315FA8 #A83F31 #9AA831
monochromatic
#152949 #234479 #315FA8 #4C7DCB #7B9FD8

Accessibility & contrast

On white

6.30
#315FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#315FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FA8
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FA8#FFFFFF#000000##FFFFFF
##315FA81.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#275BA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315fa8;
/* rgb */ color: rgb(49, 95, 168);
/* oklch */ color: oklch(49.1% 0.128 259.3);
Tailwind
colors: {
  custom: {
    50: '#788bc2',
    500: '#315fa8',
    950: '#000000',
  },
}
SCSS
$custom: #315fa8;
$custom-light: #788bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#315fa8",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 216.807,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49143,
    "c": 0.12761,
    "h": 259.3
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#315FA8
secondary
#C1A374
accent
#A54ADE
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #315FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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