#313B5F#313B5F

#313B5F is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.1% C 0.064 H 271.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#313B5F
RGBrgb(49, 59, 95)
HSLhsl(227, 32%, 28%)
HSVhsv(227, 48%, 37%)
CMYKcmyk(48.4%, 37.9%, 0%, 62.7%)
CIE-LABlab(25.58, 6.79, -22.72)
CIE-LCHlch(25.58, 23.71, 286.64°)
OKLaboklab(36.09% 0.0013 -0.0639)
OKLCHoklch(36.09% 0.064 271.1)
XYZxyz(4.8955, 4.6068, 11.4555)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B5F #5F5531
analogous
#31525F #313B5F #3E315F
triadic
#313B5F #5F313B #3B5F31
tetradic
#313B5F #5F3152 #5F5531 #315F3E
square
#313B5F #5F3152 #5F5531 #315F3E
split-complementary
#313B5F #5F3E31 #525F31
monochromatic
#0A0D14 #1C2237 #313B5F #465487 #5E6FAC

Accessibility & contrast

On white

10.93
#313B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B5F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B5F#FFFFFF#000000##FFFFFF
##313B5F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3F60
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#204248
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313b5f;
/* rgb */ color: rgb(49, 59, 95);
/* oklch */ color: oklch(36.1% 0.064 271.1);
Tailwind
colors: {
  custom: {
    50: '#6c708c',
    500: '#313b5f',
    950: '#000000',
  },
}
SCSS
$custom: #313b5f;
$custom-light: #6c708c;
$custom-dark: #000000;
JSON
{
  "hex": "#313b5f",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 95
  },
  "hsl": {
    "h": 226.957,
    "s": 31.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36091,
    "c": 0.06391,
    "h": 271.1
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#313B5F
secondary
#90855C
accent
#B160C8
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #313B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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