#313C72#313C72

#313C72 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.6% C 0.093 H 272.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#313C72
RGBrgb(49, 60, 114)
HSLhsl(230, 40%, 32%)
HSVhsv(230, 57%, 45%)
CMYKcmyk(57%, 47.4%, 0%, 55.3%)
CIE-LABlab(27.02, 12.77, -32.65)
CIE-LCHlch(27.02, 35.06, 291.36°)
OKLaboklab(37.56% 0.0041 -0.0929)
OKLCHoklch(37.56% 0.093 272.5)
XYZxyz(5.9188, 5.0992, 16.5887)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C72 #726731
analogous
#315D72 #313C72 #473172
triadic
#313C72 #72313C #3C7231
tetradic
#313C72 #72315D #726731 #317247
square
#313C72 #72315D #726731 #317247
split-complementary
#313C72 #724731 #5D7231
monochromatic
#0C0F1C #1F2547 #313C72 #43539D #6271BB

Accessibility & contrast

On white

10.40
#313C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C72
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C72#FFFFFF#000000##FFFFFF
##313C721.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244374
Deuteranopia (green-blind)
#1C3D71
Tritanopia (blue-blind)
#104851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313c72;
/* rgb */ color: rgb(49, 60, 114);
/* oklch */ color: oklch(37.6% 0.093 272.5);
Tailwind
colors: {
  custom: {
    50: '#6f719b',
    500: '#313c72',
    950: '#000000',
  },
}
SCSS
$custom: #313c72;
$custom-light: #6f719b;
$custom-dark: #000000;
JSON
{
  "hex": "#313c72",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 114
  },
  "hsl": {
    "h": 229.846,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37557,
    "c": 0.09302,
    "h": 272.5
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#313C72
secondary
#A3975C
accent
#BB58D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313C72

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

Preview Lab → · Contrast checker → · Palette generator →

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