#313E5F#313E5F

#313E5F is a dark, muted blue. Relative luminance 0.049; OKLCH L 36.8% C 0.060 H 267.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#313E5F
RGBrgb(49, 62, 95)
HSLhsl(223, 32%, 28%)
HSVhsv(223, 48%, 37%)
CMYKcmyk(48.4%, 34.7%, 0%, 62.7%)
CIE-LABlab(26.52, 4.76, -21.26)
CIE-LCHlch(26.52, 21.78, 282.61°)
OKLaboklab(36.81% -0.003 -0.0596)
OKLCHoklch(36.81% 0.06 267.1)
XYZxyz(5.0541, 4.9241, 11.5084)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E5F #5F5231
analogous
#31555F #313E5F #3B315F
triadic
#313E5F #5F313E #3E5F31
tetradic
#313E5F #5F3155 #5F5231 #315F3B
square
#313E5F #5F3155 #5F5231 #315F3B
split-complementary
#313E5F #5F3B31 #555F31
monochromatic
#0A0D14 #1C2437 #313E5F #465887 #5E74AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313E5F#FFFFFF#000000##FFFFFF
##313E5F1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324160
Deuteranopia (green-blind)
#2D3D5E
Tritanopia (blue-blind)
#20454A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313e5f;
/* rgb */ color: rgb(49, 62, 95);
/* oklch */ color: oklch(36.8% 0.060 267.1);
Tailwind
colors: {
  custom: {
    50: '#6c738c',
    500: '#313e5f',
    950: '#000000',
  },
}
SCSS
$custom: #313e5f;
$custom-light: #6c738c;
$custom-dark: #000000;
JSON
{
  "hex": "#313e5f",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 95
  },
  "hsl": {
    "h": 223.043,
    "s": 31.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36814,
    "c": 0.05972,
    "h": 267.1
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#313E5F
secondary
#90815C
accent
#AB60C8
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #313E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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