#313D94#313D94

#313D94 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.142 H 272.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#313D94
RGBrgb(49, 61, 148)
HSLhsl(233, 50%, 39%)
HSVhsv(233, 67%, 58%)
CMYKcmyk(66.9%, 58.8%, 0%, 42%)
CIE-LABlab(29.73, 24.52, -49.47)
CIE-LCHlch(29.73, 55.21, 296.36°)
OKLaboklab(40.38% 0.0059 -0.1424)
OKLCHoklch(40.38% 0.142 272.4)
XYZxyz(8.2789, 6.1278, 28.7577)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D94 #948831
analogous
#316E94 #313D94 #563194
triadic
#313D94 #94313D #3D9431
tetradic
#313D94 #94316E #948831 #319456
square
#313D94 #94316E #948831 #319456
split-complementary
#313D94 #945631 #6E9431
monochromatic
#131738 #222A66 #313D94 #4251C0 #707BD0

Accessibility & contrast

On white

9.43
#313D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D94
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D94#FFFFFF#000000##FFFFFF
##313D941.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313d94;
/* rgb */ color: rgb(49, 61, 148);
/* oklch */ color: oklch(40.4% 0.142 272.4);
Tailwind
colors: {
  custom: {
    50: '#7572b4',
    500: '#313d94',
    950: '#000000',
  },
}
SCSS
$custom: #313d94;
$custom-light: #7572b4;
$custom-dark: #000000;
JSON
{
  "hex": "#313d94",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 148
  },
  "hsl": {
    "h": 232.727,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.14249,
    "h": 272.4
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#313D94
secondary
#B7AE69
accent
#C94EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313D94

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

Preview Lab → · Contrast checker → · Palette generator →

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