#315DB9#315DB9

#315DB9 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.154 H 262.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#315DB9
RGBrgb(49, 93, 185)
HSLhsl(221, 58%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(73.5%, 49.7%, 0%, 27.5%)
CIE-LABlab(41.19, 17.14, -53.05)
CIE-LCHlch(41.19, 55.75, 287.91°)
OKLaboklab(49.89% -0.0191 -0.1524)
OKLCHoklch(49.89% 0.154 262.9)
XYZxyz(13.9348, 11.9829, 47.4681)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB9 #B98D31
analogous
#31A1B9 #315DB9 #4931B9
triadic
#315DB9 #B9315D #5DB931
tetradic
#315DB9 #B931A1 #B98D31 #31B949
square
#315DB9 #B931A1 #B98D31 #31B949
split-complementary
#315DB9 #B94931 #A1B931
monochromatic
#172C58 #244589 #315DB9 #557ED2 #86A2DF

Accessibility & contrast

On white

6.18
#315DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#315DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB9#FFFFFF#000000##FFFFFF
##315DB91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2768BC
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315db9;
/* rgb */ color: rgb(49, 93, 185);
/* oklch */ color: oklch(49.9% 0.154 262.9);
Tailwind
colors: {
  custom: {
    50: '#7b8acf',
    500: '#315db9',
    950: '#000000',
  },
}
SCSS
$custom: #315db9;
$custom-light: #7b8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#315db9",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 185
  },
  "hsl": {
    "h": 220.588,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49886,
    "c": 0.1536,
    "h": 262.9
  },
  "luminance": 0.11984
}

Semantic roles & 50–950 ramp

primary
#315DB9
secondary
#C8B07D
accent
#AF46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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