#313D9A#313D9A

#313D9A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.151 H 272.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#313D9A
RGBrgb(49, 61, 154)
HSLhsl(233, 52%, 40%)
HSVhsv(233, 68%, 60%)
CMYKcmyk(68.2%, 60.4%, 0%, 39.6%)
CIE-LABlab(30.21, 26.71, -52.35)
CIE-LCHlch(30.21, 58.77, 297.03°)
OKLaboklab(40.89% 0.006 -0.1508)
OKLCHoklch(40.89% 0.151 272.3)
XYZxyz(8.7661, 6.3227, 31.3240)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D9A #9A8E31
analogous
#31719A #313D9A #5A319A
triadic
#313D9A #9A313D #3D9A31
tetradic
#313D9A #9A3171 #9A8E31 #319A5A
square
#313D9A #9A3171 #9A8E31 #319A5A
split-complementary
#313D9A #9A5A31 #719A31
monochromatic
#13183D #222B6C #313D9A #4553C4 #737ED2

Accessibility & contrast

On white

9.27
#313D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D9A
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D9A#FFFFFF#000000##FFFFFF
##313D9A1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313d9a;
/* rgb */ color: rgb(49, 61, 154);
/* oklch */ color: oklch(40.9% 0.151 272.3);
Tailwind
colors: {
  custom: {
    50: '#7672b9',
    500: '#313d9a',
    950: '#000000',
  },
}
SCSS
$custom: #313d9a;
$custom-light: #7672b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313d9a",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 233.143,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40889,
    "c": 0.15096,
    "h": 272.3
  },
  "luminance": 0.06324
}

Semantic roles & 50–950 ramp

primary
#313D9A
secondary
#BAB16C
accent
#CB4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #313D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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