#313673#313673

#313673 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.3% C 0.103 H 276.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#313673
RGBrgb(49, 54, 115)
HSLhsl(235, 40%, 32%)
HSVhsv(235, 57%, 45%)
CMYKcmyk(57.4%, 53%, 0%, 54.9%)
CIE-LABlab(25.35, 17.25, -35.96)
CIE-LCHlch(25.35, 39.89, 295.63°)
OKLaboklab(36.31% 0.0116 -0.1027)
OKLCHoklch(36.31% 0.103 276.4)
XYZxyz(5.6793, 4.5287, 16.7912)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313673 #736E31
analogous
#315773 #313673 #4D3173
triadic
#313673 #733136 #367331
tetradic
#313673 #733157 #736E31 #31734D
square
#313673 #733157 #736E31 #31734D
split-complementary
#313673 #734D31 #577331
monochromatic
#0C0E1D #1F2248 #313673 #434A9E #6269BC

Accessibility & contrast

On white

11.02
#313673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#313673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313673
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313673#FFFFFF#000000##FFFFFF
##3136731.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173F75
Deuteranopia (green-blind)
#0D3972
Tritanopia (blue-blind)
#10444F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313673;
/* rgb */ color: rgb(49, 54, 115);
/* oklch */ color: oklch(36.3% 0.103 276.4);
Tailwind
colors: {
  custom: {
    50: '#6f6c9c',
    500: '#313673',
    950: '#000000',
  },
}
SCSS
$custom: #313673;
$custom-light: #6f6c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313673",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 115
  },
  "hsl": {
    "h": 235.455,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36314,
    "c": 0.10336,
    "h": 276.4
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#313673
secondary
#A49E5C
accent
#C758D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313673

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

Preview Lab → · Contrast checker → · Palette generator →

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