#313297#313297

#313297 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.161 H 275.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#313297
RGBrgb(49, 50, 151)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 68%, 59%)
CMYKcmyk(67.5%, 66.9%, 0%, 40.8%)
CIE-LABlab(27.21, 32.80, -55.43)
CIE-LCHlch(27.21, 64.41, 300.62°)
OKLaboklab(38.6% 0.0151 -0.1599)
OKLCHoklch(38.6% 0.161 275.4)
XYZxyz(7.9913, 5.1678, 29.8485)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313297 #979631
analogous
#316597 #313297 #633197
triadic
#313297 #973132 #329731
tetradic
#313297 #973165 #979631 #319763
square
#313297 #973165 #979631 #319763
split-complementary
#313297 #976331 #659731
monochromatic
#13133B #222369 #313297 #4344C2 #7172D1

Accessibility & contrast

On white

10.33
#313297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313297
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313297#FFFFFF#000000##FFFFFF
##3132971.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313297;
/* rgb */ color: rgb(49, 50, 151);
/* oklch */ color: oklch(38.6% 0.161 275.4);
Tailwind
colors: {
  custom: {
    50: '#776ab7',
    500: '#313297',
    950: '#000000',
  },
}
SCSS
$custom: #313297;
$custom-light: #776ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#313297",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 239.412,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.16065,
    "h": 275.4
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#313297
secondary
#B9B86B
accent
#D94DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313297

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

Preview Lab → · Contrast checker → · Palette generator →

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