#313563#313563

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

Color values

HEX#313563
RGBrgb(49, 53, 99)
HSLhsl(235, 34%, 29%)
HSVhsv(235, 51%, 39%)
CMYKcmyk(50.5%, 46.5%, 0%, 61.2%)
CIE-LABlab(24.00, 12.29, -27.83)
CIE-LCHlch(24.00, 30.42, 293.84°)
OKLaboklab(34.95% 0.0106 -0.0788)
OKLCHoklch(34.95% 0.08 277.7)
XYZxyz(4.7912, 4.0998, 12.3408)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313563 #635F31
analogous
#314E63 #313563 #463163
triadic
#313563 #633135 #356331
tetradic
#313563 #63314E #635F31 #316346
square
#313563 #63314E #635F31 #316346
split-complementary
#313563 #634631 #4E6331
monochromatic
#0A0B14 #1D1F3A #313563 #454B8C #5F65B0

Accessibility & contrast

On white

11.54
#313563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313563
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313563#FFFFFF#000000##FFFFFF
##3135631.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233B65
Deuteranopia (green-blind)
#1F3762
Tritanopia (blue-blind)
#1F3F47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313563;
/* rgb */ color: rgb(49, 53, 99);
/* oklch */ color: oklch(34.9% 0.080 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c6c90',
    500: '#313563',
    950: '#000000',
  },
}
SCSS
$custom: #313563;
$custom-light: #6c6c90;
$custom-dark: #000000;
JSON
{
  "hex": "#313563",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 99
  },
  "hsl": {
    "h": 235.2,
    "s": 33.784,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3495,
    "c": 0.07954,
    "h": 277.7
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#313563
secondary
#94905C
accent
#C15ECA
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313563

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

Preview Lab → · Contrast checker → · Palette generator →

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