#313F7C#313F7C

#313F7C is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.104 H 271.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#313F7C
RGBrgb(49, 63, 124)
HSLhsl(229, 43%, 34%)
HSVhsv(229, 60%, 49%)
CMYKcmyk(60.5%, 49.2%, 0%, 51.4%)
CIE-LABlab(28.55, 14.35, -36.52)
CIE-LCHlch(28.55, 39.24, 291.45°)
OKLaboklab(38.93% 0.002 -0.1042)
OKLCHoklch(38.93% 0.104 271.1)
XYZxyz(6.6810, 5.6627, 19.8058)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F7C #7C6E31
analogous
#31657C #313F7C #49317C
triadic
#313F7C #7C313F #3F7C31
tetradic
#313F7C #7C3165 #7C6E31 #317C49
square
#313F7C #7C3165 #7C6E31 #317C49
split-complementary
#313F7C #7C4931 #657C31
monochromatic
#0E1224 #202950 #313F7C #4255A8 #6577C2

Accessibility & contrast

On white

9.85
#313F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F7C
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F7C#FFFFFF#000000##FFFFFF
##313F7C1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313f7c;
/* rgb */ color: rgb(49, 63, 124);
/* oklch */ color: oklch(38.9% 0.104 271.1);
Tailwind
colors: {
  custom: {
    50: '#7073a2',
    500: '#313f7c',
    950: '#000000',
  },
}
SCSS
$custom: #313f7c;
$custom-light: #7073a2;
$custom-dark: #000000;
JSON
{
  "hex": "#313f7c",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 124
  },
  "hsl": {
    "h": 228.8,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38933,
    "c": 0.10426,
    "h": 271.1
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#313F7C
secondary
#AA9C5F
accent
#BC55D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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