#313D7B#313D7B

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

Color values

HEX#313D7B
RGBrgb(49, 61, 123)
HSLhsl(230, 43%, 34%)
HSVhsv(230, 60%, 48%)
CMYKcmyk(60.2%, 50.4%, 0%, 51.8%)
CIE-LABlab(27.90, 15.35, -36.93)
CIE-LCHlch(27.90, 39.99, 292.57°)
OKLaboklab(38.42% 0.0042 -0.1055)
OKLCHoklch(38.42% 0.106 272.3)
XYZxyz(6.5093, 5.4200, 19.4382)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D7B #7B6F31
analogous
#31627B #313D7B #4A317B
triadic
#313D7B #7B313D #3D7B31
tetradic
#313D7B #7B3162 #7B6F31 #317B4A
square
#313D7B #7B3162 #7B6F31 #317B4A
split-complementary
#313D7B #7B4A31 #627B31
monochromatic
#0E1223 #20274F #313D7B #4253A7 #6574C2

Accessibility & contrast

On white

10.08
#313D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D7B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D7B#FFFFFF#000000##FFFFFF
##313D7B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#133F7A
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313d7b;
/* rgb */ color: rgb(49, 61, 123);
/* oklch */ color: oklch(38.4% 0.106 272.3);
Tailwind
colors: {
  custom: {
    50: '#7072a2',
    500: '#313d7b',
    950: '#000000',
  },
}
SCSS
$custom: #313d7b;
$custom-light: #7072a2;
$custom-dark: #000000;
JSON
{
  "hex": "#313d7b",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 123
  },
  "hsl": {
    "h": 230.27,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38421,
    "c": 0.10555,
    "h": 272.3
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#313D7B
secondary
#A99D5F
accent
#BE55D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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