#313B71#313B71

#313B71 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.3% C 0.093 H 273.2°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#313B71
RGBrgb(49, 59, 113)
HSLhsl(231, 40%, 32%)
HSVhsv(231, 57%, 44%)
CMYKcmyk(56.6%, 47.8%, 0%, 55.7%)
CIE-LABlab(26.66, 13.10, -32.59)
CIE-LCHlch(26.66, 35.12, 291.90°)
OKLaboklab(37.26% 0.0052 -0.0927)
OKLCHoklch(37.26% 0.093 273.2)
XYZxyz(5.8103, 4.9728, 16.2732)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B71 #716731
analogous
#315B71 #313B71 #473171
triadic
#313B71 #71313B #3B7131
tetradic
#313B71 #71315B #716731 #317147
square
#313B71 #71315B #716731 #317147
split-complementary
#313B71 #714731 #5B7131
monochromatic
#0C0E1C #1E2546 #313B71 #44519C #6270BB

Accessibility & contrast

On white

10.53
#313B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B71
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B71#FFFFFF#000000##FFFFFF
##313B711.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#1B3C70
Tritanopia (blue-blind)
#114750
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313b71;
/* rgb */ color: rgb(49, 59, 113);
/* oklch */ color: oklch(37.3% 0.093 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e709a',
    500: '#313b71',
    950: '#000000',
  },
}
SCSS
$custom: #313b71;
$custom-light: #6e709a;
$custom-dark: #000000;
JSON
{
  "hex": "#313b71",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 113
  },
  "hsl": {
    "h": 230.625,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37263,
    "c": 0.09289,
    "h": 273.2
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#313B71
secondary
#A2975C
accent
#BD58CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313B71

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

Preview Lab → · Contrast checker → · Palette generator →

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