#313C73#313C73

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

Color values

HEX#313C73
RGBrgb(49, 60, 115)
HSLhsl(230, 40%, 32%)
HSVhsv(230, 57%, 45%)
CMYKcmyk(57.4%, 47.8%, 0%, 54.9%)
CIE-LABlab(27.08, 13.13, -33.19)
CIE-LCHlch(27.08, 35.69, 291.59°)
OKLaboklab(37.63% 0.0043 -0.0945)
OKLCHoklch(37.63% 0.095 272.6)
XYZxyz(5.9760, 5.1221, 16.8901)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C73 #736831
analogous
#315D73 #313C73 #473173
triadic
#313C73 #73313C #3C7331
tetradic
#313C73 #73315D #736831 #317347
square
#313C73 #73315D #736831 #317347
split-complementary
#313C73 #734731 #5D7331
monochromatic
#0C0F1D #1F2648 #313C73 #43529E #6271BC

Accessibility & contrast

On white

10.37
#313C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C73
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C73#FFFFFF#000000##FFFFFF
##313C731.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234375
Deuteranopia (green-blind)
#1B3D72
Tritanopia (blue-blind)
#0E4852
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313c73;
/* rgb */ color: rgb(49, 60, 115);
/* oklch */ color: oklch(37.6% 0.095 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f719c',
    500: '#313c73',
    950: '#000000',
  },
}
SCSS
$custom: #313c73;
$custom-light: #6f719c;
$custom-dark: #000000;
JSON
{
  "hex": "#313c73",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 115
  },
  "hsl": {
    "h": 230,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37627,
    "c": 0.09459,
    "h": 272.6
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#313C73
secondary
#A4985C
accent
#BC58D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313C73

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

Preview Lab → · Contrast checker → · Palette generator →

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