#313197#313197

#313197 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.162 H 275.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#313197
RGBrgb(49, 49, 151)
HSLhsl(240, 51%, 39%)
HSVhsv(240, 68%, 59%)
CMYKcmyk(67.5%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.97, 33.44, -55.81)
CIE-LCHlch(26.97, 65.06, 300.92°)
OKLaboklab(38.43% 0.0159 -0.1611)
OKLCHoklch(38.43% 0.162 275.6)
XYZxyz(7.9490, 5.0833, 29.8344)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313197 #979731
analogous
#316497 #313197 #643197
triadic
#313197 #973131 #319731
tetradic
#313197 #973164 #979731 #319764
square
#313197 #973164 #979731 #319764
split-complementary
#313197 #976431 #649731
monochromatic
#13133B #222269 #313197 #4343C2 #7171D1

Accessibility & contrast

On white

10.41
#313197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313197
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313197#FFFFFF#000000##FFFFFF
##3131971.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313197;
/* rgb */ color: rgb(49, 49, 151);
/* oklch */ color: oklch(38.4% 0.162 275.6);
Tailwind
colors: {
  custom: {
    50: '#7769b7',
    500: '#313197',
    950: '#000000',
  },
}
SCSS
$custom: #313197;
$custom-light: #7769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#313197",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38429,
    "c": 0.16186,
    "h": 275.6
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#313197
secondary
#B9B96B
accent
#DA4DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313197

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

Preview Lab → · Contrast checker → · Palette generator →

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