#313F5F#313F5F

#313F5F is a dark, muted blue. Relative luminance 0.050; OKLCH L 37.1% C 0.058 H 265.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#313F5F
RGBrgb(49, 63, 95)
HSLhsl(222, 32%, 28%)
HSVhsv(222, 48%, 37%)
CMYKcmyk(48.4%, 33.7%, 0%, 62.7%)
CIE-LABlab(26.83, 4.08, -20.77)
CIE-LCHlch(26.83, 21.16, 281.12°)
OKLaboklab(37.06% -0.0045 -0.0582)
OKLCHoklch(37.06% 0.058 265.6)
XYZxyz(5.1090, 5.0339, 11.5267)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F5F #5F5131
analogous
#31565F #313F5F #3A315F
triadic
#313F5F #5F313F #3F5F31
tetradic
#313F5F #5F3156 #5F5131 #315F3A
square
#313F5F #5F3156 #5F5131 #315F3A
split-complementary
#313F5F #5F3A31 #565F31
monochromatic
#0A0D14 #1C2437 #313F5F #465A87 #5E76AC

Accessibility & contrast

On white

10.46
#313F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F5F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F5F#FFFFFF#000000##FFFFFF
##313F5F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334260
Deuteranopia (green-blind)
#2F3E5E
Tritanopia (blue-blind)
#20464A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313f5f;
/* rgb */ color: rgb(49, 63, 95);
/* oklch */ color: oklch(37.1% 0.058 265.6);
Tailwind
colors: {
  custom: {
    50: '#6c738c',
    500: '#313f5f',
    950: '#000000',
  },
}
SCSS
$custom: #313f5f;
$custom-light: #6c738c;
$custom-dark: #000000;
JSON
{
  "hex": "#313f5f",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 95
  },
  "hsl": {
    "h": 221.739,
    "s": 31.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37057,
    "c": 0.05838,
    "h": 265.6
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#313F5F
secondary
#90805C
accent
#A860C8
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #313F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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