#313D7C#313D7C

#313D7C is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.5% C 0.107 H 272.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#313D7C
RGBrgb(49, 61, 124)
HSLhsl(230, 43%, 34%)
HSVhsv(230, 60%, 49%)
CMYKcmyk(60.5%, 50.8%, 0%, 51.4%)
CIE-LABlab(27.97, 15.71, -37.45)
CIE-LCHlch(27.97, 40.61, 292.76°)
OKLaboklab(38.49% 0.0043 -0.107)
OKLCHoklch(38.49% 0.107 272.3)
XYZxyz(6.5723, 5.4452, 19.7696)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D7C #7C7031
analogous
#31637C #313D7C #4B317C
triadic
#313D7C #7C313D #3D7C31
tetradic
#313D7C #7C3163 #7C7031 #317C4B
square
#313D7C #7C3163 #7C7031 #317C4B
split-complementary
#313D7C #7C4B31 #637C31
monochromatic
#0E1224 #202750 #313D7C #4253A8 #6574C2

Accessibility & contrast

On white

10.05
#313D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D7C
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D7C#FFFFFF#000000##FFFFFF
##313D7C1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457E
Deuteranopia (green-blind)
#113F7B
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313d7c;
/* rgb */ color: rgb(49, 61, 124);
/* oklch */ color: oklch(38.5% 0.107 272.3);
Tailwind
colors: {
  custom: {
    50: '#7072a2',
    500: '#313d7c',
    950: '#000000',
  },
}
SCSS
$custom: #313d7c;
$custom-light: #7072a2;
$custom-dark: #000000;
JSON
{
  "hex": "#313d7c",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 124
  },
  "hsl": {
    "h": 230.4,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38494,
    "c": 0.10708,
    "h": 272.3
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#313D7C
secondary
#AA9E5F
accent
#BF55D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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