#313754#313754

#313754 is a dark, muted blue. Relative luminance 0.040; OKLCH L 34.5% C 0.052 H 274.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#313754
RGBrgb(49, 55, 84)
HSLhsl(230, 26%, 26%)
HSVhsv(230, 42%, 33%)
CMYKcmyk(41.7%, 34.5%, 0%, 67.1%)
CIE-LABlab(23.75, 5.87, -18.38)
CIE-LCHlch(23.75, 19.30, 287.70°)
OKLaboklab(34.48% 0.004 -0.0513)
OKLCHoklch(34.48% 0.052 274.5)
XYZxyz(4.2326, 4.0253, 8.9397)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313754 #544E31
analogous
#314854 #313754 #3C3154
triadic
#313754 #543137 #375431
tetradic
#313754 #543148 #544E31 #31543C
square
#313754 #543148 #544E31 #31543C
split-complementary
#313754 #543C31 #485431
monochromatic
#0B0D13 #1A1E2D #313754 #48507B #5E6AA1

Accessibility & contrast

On white

11.63
#313754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#313754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313754
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313754#FFFFFF#000000##FFFFFF
##3137541.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3A55
Deuteranopia (green-blind)
#2B3753
Tritanopia (blue-blind)
#263D41
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313754;
/* rgb */ color: rgb(49, 55, 84);
/* oklch */ color: oklch(34.5% 0.052 274.5);
Tailwind
colors: {
  custom: {
    50: '#6a6d84',
    500: '#313754',
    950: '#000000',
  },
}
SCSS
$custom: #313754;
$custom-light: #6a6d84;
$custom-dark: #000000;
JSON
{
  "hex": "#313754",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 84
  },
  "hsl": {
    "h": 229.714,
    "s": 26.316,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34484,
    "c": 0.05151,
    "h": 274.5
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#313754
secondary
#857E5C
accent
#B365C3
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06070B
muted
#7A7A7C

Preview Lab

Preview with #313754

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

Preview Lab → · Contrast checker → · Palette generator →

#313754 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva