#313C92#313C92

#313C92 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.141 H 272.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#313C92
RGBrgb(49, 60, 146)
HSLhsl(233, 50%, 38%)
HSVhsv(233, 66%, 57%)
CMYKcmyk(66.4%, 58.9%, 0%, 42.7%)
CIE-LABlab(29.31, 24.45, -48.93)
CIE-LCHlch(29.31, 54.70, 296.55°)
OKLaboklab(40.02% 0.0068 -0.1408)
OKLCHoklch(40.02% 0.141 272.8)
XYZxyz(8.0691, 5.9593, 27.9136)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C92 #928731
analogous
#316C92 #313C92 #563192
triadic
#313C92 #92313C #3C9231
tetradic
#313C92 #92316C #928731 #319256
square
#313C92 #92316C #928731 #319256
split-complementary
#313C92 #925631 #6C9231
monochromatic
#121636 #222964 #313C92 #414FBF #6F7ACF

Accessibility & contrast

On white

9.58
#313C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#313C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C92
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C92#FFFFFF#000000##FFFFFF
##313C921.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313c92;
/* rgb */ color: rgb(49, 60, 146);
/* oklch */ color: oklch(40.0% 0.141 272.8);
Tailwind
colors: {
  custom: {
    50: '#7571b3',
    500: '#313c92',
    950: '#000000',
  },
}
SCSS
$custom: #313c92;
$custom-light: #7571b3;
$custom-dark: #000000;
JSON
{
  "hex": "#313c92",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 146
  },
  "hsl": {
    "h": 233.196,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40017,
    "c": 0.14097,
    "h": 272.8
  },
  "luminance": 0.0596
}

Semantic roles & 50–950 ramp

primary
#313C92
secondary
#B6AD69
accent
#CA4FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C92

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

Preview Lab → · Contrast checker → · Palette generator →

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