#313371#313371

#313371 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.5% C 0.105 H 278.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#313371
RGBrgb(49, 51, 113)
HSLhsl(238, 40%, 32%)
HSVhsv(238, 57%, 44%)
CMYKcmyk(56.6%, 54.9%, 0%, 55.7%)
CIE-LABlab(24.36, 18.60, -36.27)
CIE-LCHlch(24.36, 40.76, 297.15°)
OKLaboklab(35.53% 0.015 -0.1036)
OKLCHoklch(35.53% 0.105 278.2)
XYZxyz(5.4301, 4.2125, 16.1465)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313371 #716F31
analogous
#315371 #313371 #4F3171
triadic
#313371 #713133 #337131
tetradic
#313371 #713153 #716F31 #31714F
square
#313371 #713153 #716F31 #31714F
split-complementary
#313371 #714F31 #537131
monochromatic
#0C0C1C #1E2046 #313371 #44469C #6264BB

Accessibility & contrast

On white

11.40
#313371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#313371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313371
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313371#FFFFFF#000000##FFFFFF
##3133711.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D73
Deuteranopia (green-blind)
#073770
Tritanopia (blue-blind)
#13414C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313371;
/* rgb */ color: rgb(49, 51, 113);
/* oklch */ color: oklch(35.5% 0.105 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f6a9a',
    500: '#313371',
    950: '#000000',
  },
}
SCSS
$custom: #313371;
$custom-light: #6f6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#313371",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 238.125,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35528,
    "c": 0.10473,
    "h": 278.2
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#313371
secondary
#A2A05C
accent
#CC58CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313371

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

Preview Lab → · Contrast checker → · Palette generator →

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