#313B68#313B68

#313B68 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.7% C 0.079 H 272.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#313B68
RGBrgb(49, 59, 104)
HSLhsl(229, 36%, 30%)
HSVhsv(229, 53%, 41%)
CMYKcmyk(52.9%, 43.3%, 0%, 59.2%)
CIE-LABlab(26.10, 9.90, -27.72)
CIE-LCHlch(26.10, 29.44, 289.66°)
OKLaboklab(36.66% 0.0035 -0.0785)
OKLCHoklch(36.66% 0.079 272.5)
XYZxyz(5.3285, 4.7800, 13.7359)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B68 #685E31
analogous
#315668 #313B68 #433168
triadic
#313B68 #68313B #3B6831
tetradic
#313B68 #683156 #685E31 #316843
square
#313B68 #683156 #685E31 #316843
split-complementary
#313B68 #684331 #566831
monochromatic
#0A0C15 #1D233E #313B68 #455392 #606FB4

Accessibility & contrast

On white

10.74
#313B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#313B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B68
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B68#FFFFFF#000000##FFFFFF
##313B681.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29406A
Deuteranopia (green-blind)
#243C67
Tritanopia (blue-blind)
#1A454C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313b68;
/* rgb */ color: rgb(49, 59, 104);
/* oklch */ color: oklch(36.7% 0.079 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d7093',
    500: '#313b68',
    950: '#000000',
  },
}
SCSS
$custom: #313b68;
$custom-light: #6d7093;
$custom-dark: #000000;
JSON
{
  "hex": "#313b68",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 104
  },
  "hsl": {
    "h": 229.091,
    "s": 35.948,
    "l": 30
  },
  "oklch": {
    "l": 0.36655,
    "c": 0.07856,
    "h": 272.5
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#313B68
secondary
#998E5C
accent
#B85CCC
background
#F6F6F9
surface
#ECECF1
border
#C7C7CB
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #313B68

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

Preview Lab → · Contrast checker → · Palette generator →

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