#313B6E#313B6E

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

Color values

HEX#313B6E
RGBrgb(49, 59, 110)
HSLhsl(230, 38%, 31%)
HSVhsv(230, 55%, 43%)
CMYKcmyk(55.5%, 46.4%, 0%, 56.9%)
CIE-LABlab(26.47, 12.03, -30.98)
CIE-LCHlch(26.47, 33.24, 291.21°)
OKLaboklab(37.06% 0.0047 -0.088)
OKLCHoklch(37.06% 0.088 273)
XYZxyz(5.6442, 4.9063, 15.3984)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B6E #6E6431
analogous
#31596E #313B6E #45316E
triadic
#313B6E #6E313B #3B6E31
tetradic
#313B6E #6E3159 #6E6431 #316E45
square
#313B6E #6E3159 #6E6431 #316E45
split-complementary
#313B6E #6E4531 #596E31
monochromatic
#0B0E19 #1E2444 #313B6E #445298 #616FB9

Accessibility & contrast

On white

10.60
#313B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B6E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B6E#FFFFFF#000000##FFFFFF
##313B6E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254170
Deuteranopia (green-blind)
#1F3C6D
Tritanopia (blue-blind)
#15464F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313b6e;
/* rgb */ color: rgb(49, 59, 110);
/* oklch */ color: oklch(37.1% 0.088 273.0);
Tailwind
colors: {
  custom: {
    50: '#6e7098',
    500: '#313b6e',
    950: '#000000',
  },
}
SCSS
$custom: #313b6e;
$custom-light: #6e7098;
$custom-dark: #000000;
JSON
{
  "hex": "#313b6e",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 110
  },
  "hsl": {
    "h": 230.164,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37056,
    "c": 0.08815,
    "h": 273
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#313B6E
secondary
#9F945C
accent
#BB59CE
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #313B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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