#313D63#313D63

#313D63 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 36.8% C 0.068 H 269.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#313D63
RGBrgb(49, 61, 99)
HSLhsl(226, 34%, 29%)
HSVhsv(226, 51%, 39%)
CMYKcmyk(50.5%, 38.4%, 0%, 61.2%)
CIE-LABlab(26.42, 6.80, -23.99)
CIE-LCHlch(26.42, 24.94, 285.82°)
OKLaboklab(36.81% -0.0005 -0.0676)
OKLCHoklch(36.81% 0.068 269.6)
XYZxyz(5.1868, 4.8910, 12.4727)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D63 #635731
analogous
#315663 #313D63 #3E3163
triadic
#313D63 #63313D #3D6331
tetradic
#313D63 #633156 #635731 #31633E
square
#313D63 #633156 #635731 #31633E
split-complementary
#313D63 #633E31 #566331
monochromatic
#0A0D14 #1D243A #313D63 #45568C #5F72B0

Accessibility & contrast

On white

10.62
#313D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313D63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D63
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D63#FFFFFF#000000##FFFFFF
##313D631.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4165
Deuteranopia (green-blind)
#2A3C62
Tritanopia (blue-blind)
#1E454B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313d63;
/* rgb */ color: rgb(49, 61, 99);
/* oklch */ color: oklch(36.8% 0.068 269.6);
Tailwind
colors: {
  custom: {
    50: '#6c728f',
    500: '#313d63',
    950: '#000000',
  },
}
SCSS
$custom: #313d63;
$custom-light: #6c728f;
$custom-dark: #000000;
JSON
{
  "hex": "#313d63",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 99
  },
  "hsl": {
    "h": 225.6,
    "s": 33.784,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.06758,
    "h": 269.6
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#313D63
secondary
#94875C
accent
#B05ECA
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #313D63

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

Preview Lab → · Contrast checker → · Palette generator →

#313D63 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva