#315EB9#315EB9

#315EB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.152 H 262.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#315EB9
RGBrgb(49, 94, 185)
HSLhsl(220, 58%, 46%)
HSVhsv(220, 74%, 73%)
CMYKcmyk(73.5%, 49.2%, 0%, 27.5%)
CIE-LABlab(41.47, 16.49, -52.60)
CIE-LCHlch(41.47, 55.12, 287.41°)
OKLaboklab(50.1% -0.0199 -0.1511)
OKLCHoklch(50.1% 0.152 262.5)
XYZxyz(14.0232, 12.1596, 47.4975)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EB9 #B98C31
analogous
#31A2B9 #315EB9 #4831B9
triadic
#315EB9 #B9315E #5EB931
tetradic
#315EB9 #B931A2 #B98C31 #31B948
square
#315EB9 #B931A2 #B98C31 #31B948
split-complementary
#315EB9 #B94831 #A2B931
monochromatic
#172D58 #244589 #315EB9 #557ED2 #86A3DF

Accessibility & contrast

On white

6.12
#315EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#315EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EB9
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EB9#FFFFFF#000000##FFFFFF
##315EB91.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315eb9;
/* rgb */ color: rgb(49, 94, 185);
/* oklch */ color: oklch(50.1% 0.152 262.5);
Tailwind
colors: {
  custom: {
    50: '#7b8bcf',
    500: '#315eb9',
    950: '#000000',
  },
}
SCSS
$custom: #315eb9;
$custom-light: #7b8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#315eb9",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 185
  },
  "hsl": {
    "h": 220.147,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.501,
    "c": 0.15237,
    "h": 262.5
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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