#315EA8#315EA8

#315EA8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.129 H 259.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#315EA8
RGBrgb(49, 94, 168)
HSLhsl(217, 55%, 43%)
HSVhsv(217, 71%, 66%)
CMYKcmyk(70.8%, 44%, 0%, 34.1%)
CIE-LABlab(40.38, 10.11, -44.34)
CIE-LCHlch(40.38, 45.48, 282.84°)
OKLaboklab(48.92% -0.0227 -0.1268)
OKLCHoklch(48.92% 0.129 259.8)
XYZxyz(12.3347, 11.4842, 38.6048)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EA8 #A87B31
analogous
#319AA8 #315EA8 #3F31A8
triadic
#315EA8 #A8315E #5EA831
tetradic
#315EA8 #A8319A #A87B31 #31A83F
square
#315EA8 #A8319A #A87B31 #31A83F
split-complementary
#315EA8 #A83F31 #9AA831
monochromatic
#152949 #234379 #315EA8 #4C7CCB #7B9ED8

Accessibility & contrast

On white

6.37
#315EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#315EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EA8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EA8#FFFFFF#000000##FFFFFF
##315EA81.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#255AA6
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ea8;
/* rgb */ color: rgb(49, 94, 168);
/* oklch */ color: oklch(48.9% 0.129 259.8);
Tailwind
colors: {
  custom: {
    50: '#788bc2',
    500: '#315ea8',
    950: '#000000',
  },
}
SCSS
$custom: #315ea8;
$custom-light: #788bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#315ea8",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 217.311,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48918,
    "c": 0.1288,
    "h": 259.8
  },
  "luminance": 0.11486
}

Semantic roles & 50–950 ramp

primary
#315EA8
secondary
#C1A474
accent
#A64ADE
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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