#315199#315199

#315199 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.123 H 264.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#315199
RGBrgb(49, 81, 153)
HSLhsl(222, 51%, 40%)
HSVhsv(222, 68%, 60%)
CMYKcmyk(68%, 47.1%, 0%, 40%)
CIE-LABlab(35.67, 12.99, -42.93)
CIE-LCHlch(35.67, 44.85, 286.84°)
OKLaboklab(44.99% -0.0128 -0.1228)
OKLCHoklch(44.99% 0.123 264.1)
XYZxyz(9.9568, 8.8368, 31.3118)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315199 #997931
analogous
#318599 #315199 #453199
triadic
#315199 #993151 #519931
tetradic
#315199 #993185 #997931 #319945
square
#315199 #993185 #997931 #319945
split-complementary
#315199 #994531 #859931
monochromatic
#13203C #22386B #315199 #446BC3 #7290D2

Accessibility & contrast

On white

7.59
#315199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#315199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315199
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315199#FFFFFF#000000##FFFFFF
##3151991.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599C
Deuteranopia (green-blind)
#194F98
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #315199;
/* rgb */ color: rgb(49, 81, 153);
/* oklch */ color: oklch(45.0% 0.123 264.1);
Tailwind
colors: {
  custom: {
    50: '#7581b7',
    500: '#315199',
    950: '#000000',
  },
}
SCSS
$custom: #315199;
$custom-light: #7581b7;
$custom-dark: #000000;
JSON
{
  "hex": "#315199",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 221.538,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.12349,
    "h": 264.1
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#315199
secondary
#BAA26C
accent
#AF4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #315199

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

Preview Lab → · Contrast checker → · Palette generator →

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