#315AA2#315AA2

#315AA2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.125 H 260.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#315AA2
RGBrgb(49, 90, 162)
HSLhsl(218, 54%, 41%)
HSVhsv(218, 70%, 64%)
CMYKcmyk(69.8%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.85, 10.45, -43.23)
CIE-LCHlch(38.85, 44.47, 283.60°)
OKLaboklab(47.62% -0.02 -0.1236)
OKLCHoklch(47.62% 0.125 260.8)
XYZxyz(11.4420, 10.5728, 35.6132)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AA2 #A27931
analogous
#3193A2 #315AA2 #4131A2
triadic
#315AA2 #A2315A #5AA231
tetradic
#315AA2 #A23193 #A27931 #31A241
square
#315AA2 #A23193 #A27931 #31A241
split-complementary
#315AA2 #A24131 #93A231
monochromatic
#152644 #234073 #315AA2 #4877C8 #779AD6

Accessibility & contrast

On white

6.74
#315AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#315AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AA2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AA2#FFFFFF#000000##FFFFFF
##315AA21.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#2357A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #315aa2;
/* rgb */ color: rgb(49, 90, 162);
/* oklch */ color: oklch(47.6% 0.125 260.8);
Tailwind
colors: {
  custom: {
    50: '#7788be',
    500: '#315aa2',
    950: '#000000',
  },
}
SCSS
$custom: #315aa2;
$custom-light: #7788be;
$custom-dark: #000000;
JSON
{
  "hex": "#315aa2",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 218.23,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47616,
    "c": 0.12519,
    "h": 260.8
  },
  "luminance": 0.10574
}

Semantic roles & 50–950 ramp

primary
#315AA2
secondary
#BEA271
accent
#A84BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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