#313296#313296

#313296 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.159 H 275.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#313296
RGBrgb(49, 50, 150)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 67%, 59%)
CMYKcmyk(67.3%, 66.7%, 0%, 41.2%)
CIE-LABlab(27.12, 32.45, -54.96)
CIE-LCHlch(27.12, 63.83, 300.56°)
OKLaboklab(38.51% 0.0152 -0.1586)
OKLCHoklch(38.51% 0.159 275.5)
XYZxyz(7.9104, 5.1355, 29.4226)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313296 #969531
analogous
#316596 #313296 #633196
triadic
#313296 #963132 #329631
tetradic
#313296 #963165 #969531 #319663
square
#313296 #963165 #969531 #319663
split-complementary
#313296 #966331 #659631
monochromatic
#13133A #222368 #313296 #4344C1 #7172D1

Accessibility & contrast

On white

10.36
#313296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313296
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313296#FFFFFF#000000##FFFFFF
##3132961.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313296;
/* rgb */ color: rgb(49, 50, 150);
/* oklch */ color: oklch(38.5% 0.159 275.5);
Tailwind
colors: {
  custom: {
    50: '#766ab6',
    500: '#313296',
    950: '#000000',
  },
}
SCSS
$custom: #313296;
$custom-light: #766ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#313296",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 239.406,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38508,
    "c": 0.15931,
    "h": 275.5
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#313296
secondary
#B8B86A
accent
#D94EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313296

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

Preview Lab → · Contrast checker → · Palette generator →

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