#313E66#313E66

#313E66 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.2% C 0.071 H 269.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#313E66
RGBrgb(49, 62, 102)
HSLhsl(225, 35%, 30%)
HSVhsv(225, 52%, 40%)
CMYKcmyk(52%, 39.2%, 0%, 60%)
CIE-LABlab(26.90, 7.16, -25.17)
CIE-LCHlch(26.90, 26.17, 285.87°)
OKLaboklab(37.23% -0.0011 -0.071)
OKLCHoklch(37.23% 0.071 269.1)
XYZxyz(5.3867, 5.0572, 13.2601)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E66 #665931
analogous
#315966 #313E66 #3F3166
triadic
#313E66 #66313E #3E6631
tetradic
#313E66 #663159 #665931 #31663F
square
#313E66 #663159 #665931 #31663F
split-complementary
#313E66 #663F31 #596631
monochromatic
#0A0D15 #1D253D #313E66 #45578F #5F74B2

Accessibility & contrast

On white

10.44
#313E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E66
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E66#FFFFFF#000000##FFFFFF
##313E661.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4268
Deuteranopia (green-blind)
#293D65
Tritanopia (blue-blind)
#1B464D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313e66;
/* rgb */ color: rgb(49, 62, 102);
/* oklch */ color: oklch(37.2% 0.071 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d7392',
    500: '#313e66',
    950: '#000000',
  },
}
SCSS
$custom: #313e66;
$custom-light: #6d7392;
$custom-dark: #000000;
JSON
{
  "hex": "#313e66",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 102
  },
  "hsl": {
    "h": 225.283,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37232,
    "c": 0.07103,
    "h": 269.1
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#313E66
secondary
#97895C
accent
#B05DCB
background
#F6F6F8
surface
#ECECF0
border
#C7C7CB
text
#07080D
muted
#7A7B7D

Preview Lab

Preview with #313E66

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

Preview Lab → · Contrast checker → · Palette generator →

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