#313F79#313F79

#313F79 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.100 H 270.9°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#313F79
RGBrgb(49, 63, 121)
HSLhsl(228, 42%, 33%)
HSVhsv(228, 60%, 47%)
CMYKcmyk(59.5%, 47.9%, 0%, 52.5%)
CIE-LABlab(28.35, 13.25, -34.95)
CIE-LCHlch(28.35, 37.38, 290.77°)
OKLaboklab(38.72% 0.0016 -0.0996)
OKLCHoklch(38.72% 0.1 270.9)
XYZxyz(6.4942, 5.5880, 18.8218)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F79 #796B31
analogous
#316379 #313F79 #473179
triadic
#313F79 #79313F #3F7931
tetradic
#313F79 #793163 #796B31 #317947
square
#313F79 #793163 #796B31 #317947
split-complementary
#313F79 #794731 #637931
monochromatic
#0E1222 #1F284D #313F79 #4356A5 #6476C0

Accessibility & contrast

On white

9.92
#313F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F79
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F79#FFFFFF#000000##FFFFFF
##313F791.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24467B
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#024C56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313f79;
/* rgb */ color: rgb(49, 63, 121);
/* oklch */ color: oklch(38.7% 0.100 270.9);
Tailwind
colors: {
  custom: {
    50: '#7073a0',
    500: '#313f79',
    950: '#000000',
  },
}
SCSS
$custom: #313f79;
$custom-light: #7073a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313f79",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 121
  },
  "hsl": {
    "h": 228.333,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38719,
    "c": 0.09964,
    "h": 270.9
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

primary
#313F79
secondary
#A8995E
accent
#BA56D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #313F79

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

Preview Lab → · Contrast checker → · Palette generator →

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