#315EAB#315EAB

#315EAB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.133 H 260.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#315EAB
RGBrgb(49, 94, 171)
HSLhsl(218, 55%, 43%)
HSVhsv(218, 71%, 67%)
CMYKcmyk(71.3%, 45%, 0%, 32.9%)
CIE-LABlab(40.57, 11.23, -45.82)
CIE-LCHlch(40.57, 47.18, 283.77°)
OKLaboklab(49.12% -0.0222 -0.1311)
OKLCHoklch(49.12% 0.133 260.4)
XYZxyz(12.6174, 11.5973, 40.0937)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EAB #AB7E31
analogous
#319BAB #315EAB #4131AB
triadic
#315EAB #AB315E #5EAB31
tetradic
#315EAB #AB319B #AB7E31 #31AB41
square
#315EAB #AB319B #AB7E31 #31AB41
split-complementary
#315EAB #AB4131 #9BAB31
monochromatic
#162A4C #23447B #315EAB #4D7CCC #7D9FDA

Accessibility & contrast

On white

6.33
#315EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#315EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EAB
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EAB#FFFFFF#000000##FFFFFF
##315EAB1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AE
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315eab;
/* rgb */ color: rgb(49, 94, 171);
/* oklch */ color: oklch(49.1% 0.133 260.4);
Tailwind
colors: {
  custom: {
    50: '#788bc4',
    500: '#315eab',
    950: '#000000',
  },
}
SCSS
$custom: #315eab;
$custom-light: #788bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#315eab",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 171
  },
  "hsl": {
    "h": 217.869,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4912,
    "c": 0.13298,
    "h": 260.4
  },
  "luminance": 0.11599
}

Semantic roles & 50–950 ramp

primary
#315EAB
secondary
#C2A675
accent
#A849DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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