#313E68#313E68

#313E68 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.4% C 0.074 H 269.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#313E68
RGBrgb(49, 62, 104)
HSLhsl(226, 36%, 30%)
HSVhsv(226, 53%, 41%)
CMYKcmyk(52.9%, 40.4%, 0%, 59.2%)
CIE-LABlab(27.01, 7.85, -26.28)
CIE-LCHlch(27.01, 27.43, 286.64°)
OKLaboklab(37.36% -0.0006 -0.0742)
OKLCHoklch(37.36% 0.074 269.6)
XYZxyz(5.4871, 5.0973, 13.7888)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E68 #685B31
analogous
#315A68 #313E68 #3F3168
triadic
#313E68 #68313E #3E6831
tetradic
#313E68 #68315A #685B31 #31683F
square
#313E68 #68315A #685B31 #31683F
split-complementary
#313E68 #683F31 #5A6831
monochromatic
#0A0C15 #1D253E #313E68 #455792 #6073B4

Accessibility & contrast

On white

10.40
#313E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E68
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E68#FFFFFF#000000##FFFFFF
##313E681.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E426A
Deuteranopia (green-blind)
#283E67
Tritanopia (blue-blind)
#1A474E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313e68;
/* rgb */ color: rgb(49, 62, 104);
/* oklch */ color: oklch(37.4% 0.074 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d7393',
    500: '#313e68',
    950: '#000000',
  },
}
SCSS
$custom: #313e68;
$custom-light: #6d7393;
$custom-dark: #000000;
JSON
{
  "hex": "#313e68",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 104
  },
  "hsl": {
    "h": 225.818,
    "s": 35.948,
    "l": 30
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.07425,
    "h": 269.6
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

primary
#313E68
secondary
#998B5C
accent
#B15CCC
background
#F6F6F9
surface
#ECECF1
border
#C7C7CB
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #313E68

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

Preview Lab → · Contrast checker → · Palette generator →

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