#313B60#313B60

#313B60 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.066 H 271.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#313B60
RGBrgb(49, 59, 96)
HSLhsl(227, 32%, 28%)
HSVhsv(227, 49%, 38%)
CMYKcmyk(49%, 38.5%, 0%, 62.4%)
CIE-LABlab(25.64, 7.13, -23.28)
CIE-LCHlch(25.64, 24.35, 287.03°)
OKLaboklab(36.15% 0.0015 -0.0655)
OKLCHoklch(36.15% 0.066 271.3)
XYZxyz(4.9412, 4.6251, 11.6964)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B60 #605631
analogous
#315260 #313B60 #3E3160
triadic
#313B60 #60313B #3B6031
tetradic
#313B60 #603152 #605631 #31603E
square
#313B60 #603152 #605631 #31603E
split-complementary
#313B60 #603E31 #526031
monochromatic
#0A0C14 #1C2237 #313B60 #465489 #5E6FAD

Accessibility & contrast

On white

10.91
#313B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B60
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B60#FFFFFF#000000##FFFFFF
##313B601.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3F61
Deuteranopia (green-blind)
#293B5F
Tritanopia (blue-blind)
#204349
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313b60;
/* rgb */ color: rgb(49, 59, 96);
/* oklch */ color: oklch(36.2% 0.066 271.3);
Tailwind
colors: {
  custom: {
    50: '#6c708d',
    500: '#313b60',
    950: '#000000',
  },
}
SCSS
$custom: #313b60;
$custom-light: #6c708d;
$custom-dark: #000000;
JSON
{
  "hex": "#313b60",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 96
  },
  "hsl": {
    "h": 227.234,
    "s": 32.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36151,
    "c": 0.06555,
    "h": 271.3
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#313B60
secondary
#91865C
accent
#B25FC9
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #313B60

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

Preview Lab → · Contrast checker → · Palette generator →

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