#313E9A#313E9A

#313E9A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.150 H 272.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#313E9A
RGBrgb(49, 62, 154)
HSLhsl(233, 52%, 40%)
HSVhsv(233, 68%, 60%)
CMYKcmyk(68.2%, 59.7%, 0%, 39.6%)
CIE-LABlab(30.47, 26.05, -51.93)
CIE-LCHlch(30.47, 58.10, 296.64°)
OKLaboklab(41.08% 0.0051 -0.1496)
OKLCHoklch(41.08% 0.15 272)
XYZxyz(8.8200, 6.4305, 31.3420)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E9A #9A8D31
analogous
#31739A #313E9A #58319A
triadic
#313E9A #9A313E #3E9A31
tetradic
#313E9A #9A3173 #9A8D31 #319A58
square
#313E9A #9A3173 #9A8D31 #319A58
split-complementary
#313E9A #9A5831 #739A31
monochromatic
#13193D #222B6C #313E9A #4554C4 #737FD2

Accessibility & contrast

On white

9.19
#313E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#313E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E9A
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E9A#FFFFFF#000000##FFFFFF
##313E9A1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313e9a;
/* rgb */ color: rgb(49, 62, 154);
/* oklch */ color: oklch(41.1% 0.150 272.0);
Tailwind
colors: {
  custom: {
    50: '#7673b8',
    500: '#313e9a',
    950: '#000000',
  },
}
SCSS
$custom: #313e9a;
$custom-light: #7673b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313e9a",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 154
  },
  "hsl": {
    "h": 232.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41083,
    "c": 0.14967,
    "h": 272
  },
  "luminance": 0.06431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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