#313D62#313D62

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

Color values

HEX#313D62
RGBrgb(49, 61, 98)
HSLhsl(225, 33%, 29%)
HSVhsv(225, 50%, 38%)
CMYKcmyk(50%, 37.8%, 0%, 61.6%)
CIE-LABlab(26.37, 6.46, -23.43)
CIE-LCHlch(26.37, 24.30, 285.40°)
OKLaboklab(36.75% -0.0008 -0.066)
OKLCHoklch(36.75% 0.066 269.3)
XYZxyz(5.1393, 4.8720, 12.2225)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D62 #625631
analogous
#315662 #313D62 #3E3162
triadic
#313D62 #62313D #3D6231
tetradic
#313D62 #623156 #625631 #31623E
square
#313D62 #623156 #625631 #31623E
split-complementary
#313D62 #623E31 #566231
monochromatic
#0A0D14 #1D2439 #313D62 #45568B #5F72AF

Accessibility & contrast

On white

10.64
#313D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D62
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D62#FFFFFF#000000##FFFFFF
##313D621.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313d62;
/* rgb */ color: rgb(49, 61, 98);
/* oklch */ color: oklch(36.8% 0.066 269.3);
Tailwind
colors: {
  custom: {
    50: '#6c728f',
    500: '#313d62',
    950: '#000000',
  },
}
SCSS
$custom: #313d62;
$custom-light: #6c728f;
$custom-dark: #000000;
JSON
{
  "hex": "#313d62",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 98
  },
  "hsl": {
    "h": 225.306,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.06596,
    "h": 269.3
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#313D62
secondary
#93865C
accent
#AF5EC9
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #313D62

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

Preview Lab → · Contrast checker → · Palette generator →

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