#315399#315399

#315399 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.4% C 0.121 H 263.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#315399
RGBrgb(49, 83, 153)
HSLhsl(220, 51%, 40%)
HSVhsv(220, 68%, 60%)
CMYKcmyk(68%, 45.8%, 0%, 40%)
CIE-LABlab(36.25, 11.67, -42.00)
CIE-LCHlch(36.25, 43.59, 285.53°)
OKLaboklab(45.43% -0.0148 -0.1201)
OKLCHoklch(45.43% 0.121 263)
XYZxyz(10.1076, 9.1384, 31.3620)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315399 #997731
analogous
#318799 #315399 #433199
triadic
#315399 #993153 #539931
tetradic
#315399 #993187 #997731 #319943
square
#315399 #993187 #997731 #319943
split-complementary
#315399 #994331 #879931
monochromatic
#13213C #223A6B #315399 #446EC3 #7292D2

Accessibility & contrast

On white

7.43
#315399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#315399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315399
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315399#FFFFFF#000000##FFFFFF
##3153991.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9C
Deuteranopia (green-blind)
#1E5198
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #315399;
/* rgb */ color: rgb(49, 83, 153);
/* oklch */ color: oklch(45.4% 0.121 263.0);
Tailwind
colors: {
  custom: {
    50: '#7582b7',
    500: '#315399',
    950: '#000000',
  },
}
SCSS
$custom: #315399;
$custom-light: #7582b7;
$custom-dark: #000000;
JSON
{
  "hex": "#315399",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 153
  },
  "hsl": {
    "h": 220.385,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.12097,
    "h": 263
  },
  "luminance": 0.09139
}

Semantic roles & 50–950 ramp

primary
#315399
secondary
#BAA06C
accent
#AC4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #315399

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

Preview Lab → · Contrast checker → · Palette generator →

#315399 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva