#313B59#313B59

#313B59 is a dark, muted blue. Relative luminance 0.045; OKLCH L 35.7% C 0.054 H 269.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#313B59
RGBrgb(49, 59, 89)
HSLhsl(225, 29%, 27%)
HSVhsv(225, 45%, 35%)
CMYKcmyk(44.9%, 33.7%, 0%, 65.1%)
CIE-LABlab(25.27, 4.78, -19.31)
CIE-LCHlch(25.27, 19.89, 283.90°)
OKLaboklab(35.74% -0.0005 -0.054)
OKLCHoklch(35.74% 0.054 269.5)
XYZxyz(4.6332, 4.5019, 10.0741)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B59 #594F31
analogous
#314F59 #313B59 #3B3159
triadic
#313B59 #59313B #3B5931
tetradic
#313B59 #59314F #594F31 #31593B
square
#313B59 #59314F #594F31 #31593B
split-complementary
#313B59 #593B31 #4F5931
monochromatic
#0B0D14 #1B2132 #313B59 #475580 #5E70A6

Accessibility & contrast

On white

11.05
#313B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B59
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B59#FFFFFF#000000##FFFFFF
##313B591.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313E5A
Deuteranopia (green-blind)
#2D3A58
Tritanopia (blue-blind)
#244146
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313b59;
/* rgb */ color: rgb(49, 59, 89);
/* oklch */ color: oklch(35.7% 0.054 269.5);
Tailwind
colors: {
  custom: {
    50: '#6b7088',
    500: '#313b59',
    950: '#000000',
  },
}
SCSS
$custom: #313b59;
$custom-light: #6b7088;
$custom-dark: #000000;
JSON
{
  "hex": "#313b59",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 89
  },
  "hsl": {
    "h": 225,
    "s": 28.986,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3574,
    "c": 0.05402,
    "h": 269.5
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#313B59
secondary
#8A7F5C
accent
#AD63C5
background
#F6F6F8
surface
#EBECEF
border
#C6C7CA
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #313B59

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

Preview Lab → · Contrast checker → · Palette generator →

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