#313E99#313E99

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

Color values

HEX#313E99
RGBrgb(49, 62, 153)
HSLhsl(233, 51%, 40%)
HSVhsv(233, 68%, 60%)
CMYKcmyk(68%, 59.5%, 0%, 40%)
CIE-LABlab(30.39, 25.68, -51.45)
CIE-LCHlch(30.39, 57.50, 296.53°)
OKLaboklab(41% 0.0051 -0.1482)
OKLCHoklch(41% 0.148 272)
XYZxyz(8.7371, 6.3973, 30.9052)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E99 #998C31
analogous
#317299 #313E99 #583199
triadic
#313E99 #99313E #3E9931
tetradic
#313E99 #993172 #998C31 #319958
square
#313E99 #993172 #998C31 #319958
split-complementary
#313E99 #995831 #729931
monochromatic
#13183C #222B6B #313E99 #4454C3 #727ED2

Accessibility & contrast

On white

9.21
#313E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#313E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E99
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E99#FFFFFF#000000##FFFFFF
##313E991.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313e99;
/* rgb */ color: rgb(49, 62, 153);
/* oklch */ color: oklch(41.0% 0.148 272.0);
Tailwind
colors: {
  custom: {
    50: '#7673b8',
    500: '#313e99',
    950: '#000000',
  },
}
SCSS
$custom: #313e99;
$custom-light: #7673b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313e99",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 153
  },
  "hsl": {
    "h": 232.5,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40998,
    "c": 0.14826,
    "h": 272
  },
  "luminance": 0.06398
}

Semantic roles & 50–950 ramp

primary
#313E99
secondary
#BAB06C
accent
#C94DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E99

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

Preview Lab → · Contrast checker → · Palette generator →

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