#313B6F#313B6F

#313B6F is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.1% C 0.090 H 273.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#313B6F
RGBrgb(49, 59, 111)
HSLhsl(230, 39%, 31%)
HSVhsv(230, 56%, 44%)
CMYKcmyk(55.9%, 46.8%, 0%, 56.5%)
CIE-LABlab(26.53, 12.38, -31.52)
CIE-LCHlch(26.53, 33.87, 291.45°)
OKLaboklab(37.12% 0.0048 -0.0896)
OKLCHoklch(37.12% 0.09 273.1)
XYZxyz(5.6989, 4.9282, 15.6868)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B6F #6F6531
analogous
#315A6F #313B6F #46316F
triadic
#313B6F #6F313B #3B6F31
tetradic
#313B6F #6F315A #6F6531 #316F46
square
#313B6F #6F315A #6F6531 #316F46
split-complementary
#313B6F #6F4631 #5A6F31
monochromatic
#0C0E1A #1E2445 #313B6F #445299 #616FB9

Accessibility & contrast

On white

10.58
#313B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B6F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B6F#FFFFFF#000000##FFFFFF
##313B6F1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254271
Deuteranopia (green-blind)
#1E3C6E
Tritanopia (blue-blind)
#14464F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313b6f;
/* rgb */ color: rgb(49, 59, 111);
/* oklch */ color: oklch(37.1% 0.090 273.1);
Tailwind
colors: {
  custom: {
    50: '#6e7099',
    500: '#313b6f',
    950: '#000000',
  },
}
SCSS
$custom: #313b6f;
$custom-light: #6e7099;
$custom-dark: #000000;
JSON
{
  "hex": "#313b6f",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 111
  },
  "hsl": {
    "h": 230.323,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.08974,
    "h": 273.1
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#313B6F
secondary
#A0955C
accent
#BC59CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #313B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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