#313562#313562

#313562 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.9% C 0.078 H 277.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#313562
RGBrgb(49, 53, 98)
HSLhsl(235, 33%, 29%)
HSVhsv(235, 50%, 38%)
CMYKcmyk(50%, 45.9%, 0%, 61.6%)
CIE-LABlab(23.94, 11.95, -27.27)
CIE-LCHlch(23.94, 29.78, 293.66°)
OKLaboklab(34.88% 0.0104 -0.0772)
OKLCHoklch(34.88% 0.078 277.7)
XYZxyz(4.7437, 4.0808, 12.0906)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313562 #625E31
analogous
#314E62 #313562 #463162
triadic
#313562 #623135 #356231
tetradic
#313562 #62314E #625E31 #316246
square
#313562 #62314E #625E31 #316246
split-complementary
#313562 #624631 #4E6231
monochromatic
#0A0B14 #1D1F39 #313562 #454B8B #5F65AF

Accessibility & contrast

On white

11.56
#313562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#313562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313562
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313562#FFFFFF#000000##FFFFFF
##3135621.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233B64
Deuteranopia (green-blind)
#203761
Tritanopia (blue-blind)
#1F3E46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313562;
/* rgb */ color: rgb(49, 53, 98);
/* oklch */ color: oklch(34.9% 0.078 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c6c8f',
    500: '#313562',
    950: '#000000',
  },
}
SCSS
$custom: #313562;
$custom-light: #6c6c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#313562",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 98
  },
  "hsl": {
    "h": 235.102,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34883,
    "c": 0.07792,
    "h": 277.7
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#313562
secondary
#938F5C
accent
#C15EC9
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313562

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

Preview Lab → · Contrast checker → · Palette generator →

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