#315AB8#315AB8

#315AB8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.156 H 263.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#315AB8
RGBrgb(49, 90, 184)
HSLhsl(222, 58%, 46%)
HSVhsv(222, 73%, 72%)
CMYKcmyk(73.4%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.29, 18.72, -53.92)
CIE-LCHlch(40.29, 57.08, 289.15°)
OKLaboklab(49.18% -0.0167 -0.155)
OKLCHoklch(49.18% 0.156 263.9)
XYZxyz(13.5714, 11.4245, 46.8280)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AB8 #B88F31
analogous
#319DB8 #315AB8 #4B31B8
triadic
#315AB8 #B8315A #5AB831
tetradic
#315AB8 #B8319D #B88F31 #31B84B
square
#315AB8 #B8319D #B88F31 #31B84B
split-complementary
#315AB8 #B84B31 #9DB831
monochromatic
#172B57 #244288 #315AB8 #557BD2 #85A0DE

Accessibility & contrast

On white

6.39
#315AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#315AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AB8
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AB8#FFFFFF#000000##FFFFFF
##315AB81.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ab8;
/* rgb */ color: rgb(49, 90, 184);
/* oklch */ color: oklch(49.2% 0.156 263.9);
Tailwind
colors: {
  custom: {
    50: '#7b88ce',
    500: '#315ab8',
    950: '#000000',
  },
}
SCSS
$custom: #315ab8;
$custom-light: #7b88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#315ab8",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 221.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49176,
    "c": 0.15592,
    "h": 263.9
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

primary
#315AB8
secondary
#C8B17D
accent
#B247E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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