#313E94#313E94

#313E94 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.141 H 272.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#313E94
RGBrgb(49, 62, 148)
HSLhsl(232, 50%, 39%)
HSVhsv(232, 67%, 58%)
CMYKcmyk(66.9%, 58.1%, 0%, 42%)
CIE-LABlab(30.00, 23.85, -49.04)
CIE-LCHlch(30.00, 54.53, 295.93°)
OKLaboklab(40.58% 0.005 -0.1411)
OKLCHoklch(40.58% 0.141 272)
XYZxyz(8.3327, 6.2356, 28.7757)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E94 #948731
analogous
#316F94 #313E94 #553194
triadic
#313E94 #94313E #3E9431
tetradic
#313E94 #94316F #948731 #319455
square
#313E94 #94316F #948731 #319455
split-complementary
#313E94 #945531 #6F9431
monochromatic
#131738 #222B66 #313E94 #4252C0 #707CD0

Accessibility & contrast

On white

9.34
#313E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#313E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E94
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E94#FFFFFF#000000##FFFFFF
##313E941.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313e94;
/* rgb */ color: rgb(49, 62, 148);
/* oklch */ color: oklch(40.6% 0.141 272.0);
Tailwind
colors: {
  custom: {
    50: '#7573b4',
    500: '#313e94',
    950: '#000000',
  },
}
SCSS
$custom: #313e94;
$custom-light: #7573b4;
$custom-dark: #000000;
JSON
{
  "hex": "#313e94",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 148
  },
  "hsl": {
    "h": 232.121,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.14117,
    "h": 272
  },
  "luminance": 0.06236
}

Semantic roles & 50–950 ramp

primary
#313E94
secondary
#B7AD69
accent
#C74EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E94

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

Preview Lab → · Contrast checker → · Palette generator →

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