#313B75#313B75

#313B75 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.099 H 273.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#313B75
RGBrgb(49, 59, 117)
HSLhsl(231, 41%, 33%)
HSVhsv(231, 58%, 46%)
CMYKcmyk(58.1%, 49.6%, 0%, 54.1%)
CIE-LABlab(26.92, 14.54, -34.71)
CIE-LCHlch(26.92, 37.63, 292.72°)
OKLaboklab(37.55% 0.0058 -0.099)
OKLCHoklch(37.55% 0.099 273.3)
XYZxyz(6.0404, 5.0648, 17.4855)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B75 #756B31
analogous
#315D75 #313B75 #493175
triadic
#313B75 #75313B #3B7531
tetradic
#313B75 #75315D #756B31 #317549
square
#313B75 #75315D #756B31 #317549
split-complementary
#313B75 #754931 #5D7531
monochromatic
#0D0F1F #1F254A #313B75 #4351A0 #6370BE

Accessibility & contrast

On white

10.43
#313B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B75
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B75#FFFFFF#000000##FFFFFF
##313B751.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204377
Deuteranopia (green-blind)
#173D74
Tritanopia (blue-blind)
#0B4852
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313b75;
/* rgb */ color: rgb(49, 59, 117);
/* oklch */ color: oklch(37.5% 0.099 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f709d',
    500: '#313b75',
    950: '#000000',
  },
}
SCSS
$custom: #313b75;
$custom-light: #6f709d;
$custom-dark: #000000;
JSON
{
  "hex": "#313b75",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 117
  },
  "hsl": {
    "h": 231.176,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.09915,
    "h": 273.3
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#313B75
secondary
#A59A5D
accent
#BF57D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313B75

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

Preview Lab → · Contrast checker → · Palette generator →

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