#313C7C#313C7C

#313C7C is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.3% C 0.108 H 272.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#313C7C
RGBrgb(49, 60, 124)
HSLhsl(231, 43%, 34%)
HSVhsv(231, 60%, 49%)
CMYKcmyk(60.5%, 51.6%, 0%, 51.4%)
CIE-LABlab(27.68, 16.39, -37.91)
CIE-LCHlch(27.68, 41.30, 293.39°)
OKLaboklab(38.28% 0.0055 -0.1084)
OKLCHoklch(38.28% 0.109 272.9)
XYZxyz(6.5194, 5.3394, 19.7519)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C7C #7C7131
analogous
#31627C #313C7C #4C317C
triadic
#313C7C #7C313C #3C7C31
tetradic
#313C7C #7C3162 #7C7131 #317C4C
square
#313C7C #7C3162 #7C7131 #317C4C
split-complementary
#313C7C #7C4C31 #627C31
monochromatic
#0E1224 #202750 #313C7C #4251A8 #6573C2

Accessibility & contrast

On white

10.15
#313C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C7C
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C7C#FFFFFF#000000##FFFFFF
##313C7C1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457E
Deuteranopia (green-blind)
#0E3E7B
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313c7c;
/* rgb */ color: rgb(49, 60, 124);
/* oklch */ color: oklch(38.3% 0.108 272.9);
Tailwind
colors: {
  custom: {
    50: '#7071a2',
    500: '#313c7c',
    950: '#000000',
  },
}
SCSS
$custom: #313c7c;
$custom-light: #7071a2;
$custom-dark: #000000;
JSON
{
  "hex": "#313c7c",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 124
  },
  "hsl": {
    "h": 231.2,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38277,
    "c": 0.1085,
    "h": 272.9
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#313C7C
secondary
#AA9F5F
accent
#C155D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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