#313356#313356

#313356 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.7% C 0.061 H 280.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#313356
RGBrgb(49, 51, 86)
HSLhsl(237, 27%, 26%)
HSVhsv(237, 43%, 34%)
CMYKcmyk(43%, 40.7%, 0%, 66.3%)
CIE-LABlab(22.63, 9.28, -21.47)
CIE-LCHlch(22.63, 23.39, 293.38°)
OKLaboklab(33.65% 0.0107 -0.0603)
OKLCHoklch(33.65% 0.061 280.1)
XYZxyz(4.1297, 3.6923, 9.2974)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313356 #565431
analogous
#314656 #313356 #423156
triadic
#313356 #563133 #335631
tetradic
#313356 #563146 #565431 #315642
square
#313356 #563146 #565431 #315642
split-complementary
#313356 #564231 #465631
monochromatic
#0B0C13 #1B1C2F #313356 #474A7D #5E62A3

Accessibility & contrast

On white

12.08
#313356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313356
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313356#FFFFFF#000000##FFFFFF
##3133561.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273757
Deuteranopia (green-blind)
#253555
Tritanopia (blue-blind)
#263A40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313356;
/* rgb */ color: rgb(49, 51, 86);
/* oklch */ color: oklch(33.7% 0.061 280.1);
Tailwind
colors: {
  custom: {
    50: '#6b6a86',
    500: '#313356',
    950: '#000000',
  },
}
SCSS
$custom: #313356;
$custom-light: #6b6a86;
$custom-dark: #000000;
JSON
{
  "hex": "#313356",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 86
  },
  "hsl": {
    "h": 236.757,
    "s": 27.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33651,
    "c": 0.06124,
    "h": 280.1
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#313356
secondary
#87855C
accent
#BF64C4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #313356

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

Preview Lab → · Contrast checker → · Palette generator →

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