#313C94#313C94

#313C94 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.144 H 272.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#313C94
RGBrgb(49, 60, 148)
HSLhsl(233, 50%, 39%)
HSVhsv(233, 67%, 58%)
CMYKcmyk(66.9%, 59.5%, 0%, 42%)
CIE-LABlab(29.47, 25.18, -49.90)
CIE-LCHlch(29.47, 55.90, 296.78°)
OKLaboklab(40.18% 0.0069 -0.1436)
OKLCHoklch(40.18% 0.144 272.7)
XYZxyz(8.2260, 6.0221, 28.7401)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C94 #948931
analogous
#316D94 #313C94 #573194
triadic
#313C94 #94313C #3C9431
tetradic
#313C94 #94316D #948931 #319457
square
#313C94 #94316D #948931 #319457
split-complementary
#313C94 #945731 #6D9431
monochromatic
#131738 #222966 #313C94 #4250C0 #707AD0

Accessibility & contrast

On white

9.53
#313C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#313C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C94
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C94#FFFFFF#000000##FFFFFF
##313C941.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313c94;
/* rgb */ color: rgb(49, 60, 148);
/* oklch */ color: oklch(40.2% 0.144 272.7);
Tailwind
colors: {
  custom: {
    50: '#7571b4',
    500: '#313c94',
    950: '#000000',
  },
}
SCSS
$custom: #313c94;
$custom-light: #7571b4;
$custom-dark: #000000;
JSON
{
  "hex": "#313c94",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 148
  },
  "hsl": {
    "h": 233.333,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40185,
    "c": 0.1438,
    "h": 272.7
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#313C94
secondary
#B7AF69
accent
#CA4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C94

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

Preview Lab → · Contrast checker → · Palette generator →

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