#313A73#313A73

#313A73 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.097 H 274.0°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#313A73
RGBrgb(49, 58, 115)
HSLhsl(232, 40%, 32%)
HSVhsv(232, 57%, 45%)
CMYKcmyk(57.4%, 49.6%, 0%, 54.9%)
CIE-LABlab(26.50, 14.50, -34.12)
CIE-LCHlch(26.50, 37.08, 293.03°)
OKLaboklab(37.18% 0.0067 -0.0973)
OKLCHoklch(37.18% 0.097 274)
XYZxyz(5.8732, 4.9165, 16.8558)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A73 #736A31
analogous
#315B73 #313A73 #493173
triadic
#313A73 #73313A #3A7331
tetradic
#313A73 #73315B #736A31 #317349
square
#313A73 #73315B #736A31 #317349
split-complementary
#313A73 #734931 #5B7331
monochromatic
#0C0F1D #1F2448 #313A73 #43509E #626EBC

Accessibility & contrast

On white

10.59
#313A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A73
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A73#FFFFFF#000000##FFFFFF
##313A731.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204275
Deuteranopia (green-blind)
#173C72
Tritanopia (blue-blind)
#0F4751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313a73;
/* rgb */ color: rgb(49, 58, 115);
/* oklch */ color: oklch(37.2% 0.097 274.0);
Tailwind
colors: {
  custom: {
    50: '#6f6f9c',
    500: '#313a73',
    950: '#000000',
  },
}
SCSS
$custom: #313a73;
$custom-light: #6f6f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313a73",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 115
  },
  "hsl": {
    "h": 231.818,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37183,
    "c": 0.09749,
    "h": 274
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#313A73
secondary
#A49A5C
accent
#C058D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313A73

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

Preview Lab → · Contrast checker → · Palette generator →

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