#313E6F#313E6F

#313E6F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.085 H 270.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#313E6F
RGBrgb(49, 62, 111)
HSLhsl(227, 39%, 31%)
HSVhsv(227, 56%, 44%)
CMYKcmyk(55.9%, 44.1%, 0%, 56.5%)
CIE-LABlab(27.42, 10.33, -30.10)
CIE-LCHlch(27.42, 31.82, 288.94°)
OKLaboklab(37.81% 0.001 -0.0854)
OKLCHoklch(37.81% 0.085 270.7)
XYZxyz(5.8576, 5.2455, 15.7397)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E6F #6F6231
analogous
#315D6F #313E6F #43316F
triadic
#313E6F #6F313E #3E6F31
tetradic
#313E6F #6F315D #6F6231 #316F43
square
#313E6F #6F315D #6F6231 #316F43
split-complementary
#313E6F #6F4331 #5D6F31
monochromatic
#0C0F1A #1E2645 #313E6F #445699 #6174B9

Accessibility & contrast

On white

10.25
#313E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E6F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E6F#FFFFFF#000000##FFFFFF
##313E6F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4471
Deuteranopia (green-blind)
#233E6E
Tritanopia (blue-blind)
#134951
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313e6f;
/* rgb */ color: rgb(49, 62, 111);
/* oklch */ color: oklch(37.8% 0.085 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e7398',
    500: '#313e6f',
    950: '#000000',
  },
}
SCSS
$custom: #313e6f;
$custom-light: #6e7398;
$custom-dark: #000000;
JSON
{
  "hex": "#313e6f",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 111
  },
  "hsl": {
    "h": 227.419,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37808,
    "c": 0.08542,
    "h": 270.7
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#313E6F
secondary
#A0925C
accent
#B659CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #313E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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