#313665#313665

#313665 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.3% C 0.081 H 276.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#313665
RGBrgb(49, 54, 101)
HSLhsl(234, 35%, 29%)
HSVhsv(234, 51%, 40%)
CMYKcmyk(51.5%, 46.5%, 0%, 60.4%)
CIE-LABlab(24.42, 12.30, -28.45)
CIE-LCHlch(24.42, 31.00, 293.37°)
OKLaboklab(35.31% 0.0096 -0.0807)
OKLCHoklch(35.31% 0.081 276.8)
XYZxyz(4.9340, 4.2306, 12.8660)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313665 #656031
analogous
#315065 #313665 #463165
triadic
#313665 #653136 #366531
tetradic
#313665 #653150 #656031 #316546
square
#313665 #653150 #656031 #316546
split-complementary
#313665 #654631 #506531
monochromatic
#0A0B15 #1D203C #313665 #454C8E #5F67B1

Accessibility & contrast

On white

11.37
#313665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313665
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313665#FFFFFF#000000##FFFFFF
##3136651.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233C67
Deuteranopia (green-blind)
#1F3864
Tritanopia (blue-blind)
#1D4048
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313665;
/* rgb */ color: rgb(49, 54, 101);
/* oklch */ color: oklch(35.3% 0.081 276.8);
Tailwind
colors: {
  custom: {
    50: '#6d6c91',
    500: '#313665',
    950: '#000000',
  },
}
SCSS
$custom: #313665;
$custom-light: #6d6c91;
$custom-dark: #000000;
JSON
{
  "hex": "#313665",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 101
  },
  "hsl": {
    "h": 234.231,
    "s": 34.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35312,
    "c": 0.08123,
    "h": 276.8
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#313665
secondary
#96915C
accent
#C05DCB
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07070D
muted
#7A7A7D

Preview Lab

Preview with #313665

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

Preview Lab → · Contrast checker → · Palette generator →

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